Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Returning data from an eval

by Zaxo (Archbishop)
on Aug 02, 2005 at 07:47 UTC ( #480104=note: print w/replies, xml ) Need Help??


in reply to Returning data from an eval

One problem is that your trials don't do what you intend with the program flow. Something like my @results = map { eval $_ } @$analysis_rules; is probably more like what you want. The example with return is particularly likely to be unexpected at you.

With your rules containing return as well, it's not clear what you expect to happen when they are evaluated. Should they be compiled as subroutines?

After Compline,
Zaxo

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2020-12-05 18:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (65 votes). Check out past polls.

    Notices?