Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Automatically add all defined functions to your @EXPORT

by pobocks (Chaplain)
on Jan 22, 2009 at 05:03 UTC ( #738044=note: print w/replies, xml ) Need Help??


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";

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://738044]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2022-11-29 21:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?