Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: perl eval

by JavaFan (Canon)
on Jul 05, 2010 at 14:19 UTC ( [id://848069]=note: print w/replies, xml ) Need Help??


in reply to perl eval

eval print $param;
That code prints out the value of $param, then evals the return value of print. You probably want something like:
my $result = eval $param; die "eval failed: $@" unless defined $result; print $result;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2024-04-24 01:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found