http://qs321.pair.com?node_id=738044


in reply to Re: Automatically add all defined functions to your @EXPORT
in thread Automatically add all defined functions to your @EXPORT

I'm not sure where I'm missing something, but why the "do"? It makes this not work for me; I must be missing something somewhere.

for(split(" ","tsuJ rehtonA lreP rekcaH")){print reverse . " "}print "\b.\n";

Replies are listed 'Best First'.
Re^3: Automatically add all defined functions to your @EXPORT
by dragonchild (Archbishop) on Jan 23, 2009 at 03:53 UTC
    The do is to introduce a new scope during an assignemnt. "not work for me" is rather vague - you want to elaborate, possibly with the actual error message?

    My criteria for good software:
    1. Does it work?
    2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

      Ahem. Sorry. By "not work for me," I meant "silently compiles and runs with no errors, not printing... and it stopped doing that, making me think it was a 4am transcription error or some such. Question withdrawn!

      for(split(" ","tsuJ rehtonA lreP rekcaH")){print reverse . " "}print "\b.\n";