in reply to Re: Whats quicker - passing along as variable to sub, or global var?
in thread Whats quicker - passing along as variable to sub, or global var?

Thanks - the problem with that, is we are passing back and forth around other .pm files (for example, View.pm, which actually grabs the contents... then Markups.pm, which process the wiki markups, and then returns back to View.pm, etc)
  • Comment on Re^2: Whats quicker - passing along as variable to sub, or global var?

Replies are listed 'Best First'.
Re^3: Whats quicker - passing along as variable to sub, or global var?
by jpl (Monk) on Apr 08, 2011 at 13:33 UTC

    You can avoiding copying to/from your my_test() routine. If you must copy to initialize the old content, and to pass back the new content, such is life.