Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: interpolating operators within strings

by NetWallah (Canon)
on Apr 14, 2013 at 01:34 UTC ( [id://1028582]=note: print w/replies, xml ) Need Help??


in reply to interpolating operators within strings

Try using "eval" : see "perldoc -f eval".

my $a = eval "2 $_ 2";
This is not considered "safe" because it is possible to inject unwanted code into the eval string.
It is fine for testing purposes.

             "I'm fairly sure if they took porn off the Internet, there'd only be one website left, and it'd be called 'Bring Back the Porn!'"
        -- Dr. Cox, Scrubs

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-19 22:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found