There's more than one way to do things | |
PerlMonks |
Re: Returning data from an evalby Zaxo (Archbishop) |
on Aug 02, 2005 at 07:47 UTC ( [id://480104]=note: print w/replies, xml ) | Need Help?? |
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,
In Section
Seekers of Perl Wisdom
|
|