Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Returning data from an eval

by Tanalis (Curate)
on Aug 02, 2005 at 07:38 UTC ( #480102=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    return( "A", "Cat A" ) if $abs_diff < 75_000 and $source eq "ICE";
    
  2. or download this
    # process analysis rules
    foreach( @$analysis_rules ) {
      eval $_;
    }
    
  3. or download this
    # process analysis rules
    foreach( @$analysis_rules ) { 
      my( $cat, $comment ) = eval $_;
      return( $cat, $comment ) if $cat and $comment;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2020-11-30 13:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?