Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Never, never, never

by Joost (Canon)
on Apr 22, 2005 at 20:00 UTC ( #450564=note: print w/ replies, xml ) Need Help??


in reply to Re: Never, never, never
in thread Never, never, never

I agree.

In my experience, symbolic references should be used (when you can) in preference to eval STRING - basically, when you're generating code (esp. converting closures to "regular" subroutines etc.) In those cases they're generally easier to use and less error prone than eval "".

Eval string is still useful too - but you need to be wary of scoping issues and typo's, which can be difficult in generated code. The only thing I regulary use it for is eval "use $some_module";


Comment on Re^2: Never, never, never
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2015-07-07 20:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls