Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: eval point in hash ref

by hdb (Prior)
on May 22, 2013 at 07:20 UTC ( #1034696=note: print w/replies, xml ) Need Help??

in reply to eval point in hash ref

Is this what you want?

use strict; use warnings; use Data::Dumper; my $nethist; $nethist->{seek} = 42; my $in = '{seek}'; my $val = eval '$nethist->'.$in; print Dumper($val);

Replies are listed 'Best First'.
Re^2: eval point in hash ref
by ag4ve (Monk) on May 22, 2013 at 07:25 UTC
    Thanks, that's what I was looking for.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2016-10-22 08:29 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (294 votes). Check out past polls.