Aller au contenu

Photo

Moneo help question


  • Veuillez vous connecter pour répondre
1 réponse à ce sujet

#1
Gorgon

Gorgon
  • Members
  • 4 messages
I use Moneo scripts (part of the leto project) sourceforge.net/projects/leto/files/Moneo/ for all sorts of tasks on some rather large modules, and the 4.0.24 version is fine for most of them. I love the new features in the 4.0.6.27 beta 3 version, but it is a tad buggy (beta, so no ranting there).

Is there a newer version around? If not, maybe someone can help me figure out how to work around something that I do find a bit annoying with the latest version. That is how to assign $_ to another variable, so it can be used later on in a script.. For example, one useful bit of code I would add to a 4.0.24 script that works on .git files is a snippit I saw long ago to grab the area name from the matching .are file (instead of using the .git name, which can be less than useful in some searches).

for (%mod['*.git'])
{
     $gitname = $_;
     subst '.GIT', '.ARE', $gitname;
     close %are if defined %are;
     %are = %mod[$gitname];
     $areaname = /Name;
     close %are;
     // More code
}

If I try something similar in 4.0.6.27 b3, $areaname (or $gitname even) always returns "Hello World!" (funny, but annoying). Is there a newer way to do something like this that I've not found?

#2
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
I suggest you stick with version 24, unless you're making use of some new functionality in 27. I still use it, having yet to find something I need that it can't do but 27 can.

Funky