Author Topic: Moneo help question  (Read 792 times)

Legacy_Gorgon

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Moneo help question
« on: July 23, 2011, 09:20:35 am »


               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?
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Moneo help question
« Reply #1 on: July 23, 2011, 12:06:37 pm »


               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