Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Returning data from an eval

by Zaxo (Archbishop)
on Aug 02, 2005 at 07:47 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://480104]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-20 11:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found