Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Evaluating variables within a string

by AnomalousMonk (Archbishop)
on Dec 06, 2017 at 00:58 UTC ( [id://1204994]=note: print w/replies, xml ) Need Help??


in reply to Evaluating variables within a string

eval(my $ref2 = "parent_ref");

Like NetWallah and nysus, I'm puzzled by this statement: Is this supposed to represent some much more complicated or tricksey code?


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^2: Evaluating variables within a string
by smknjoe (Beadle) on Dec 06, 2017 at 16:08 UTC
    I knew I shouldn't have included that piece of code in the example. I was simply playing around with the eval command, and left it in. I know a little bit about "evil eval", but sometimes it is useful.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-19 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found