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.