I'm writing a program that uses a hashref tree to store data. I'm just playing around with this, so it's nothing critical. I remember reading that you could use a string to specify a variable name or something similar. I have the following string value:

my $node = "$data->{computer}->{test}->{item1}->{text}";

which corresponds to the the hash tree:

my $data = {computer => {test => {item1 => {text => "computer.test.item1"}}}};

How can I get it to print "computer.test.item1" (from hash tree above) instead of just the bare string contents of $node?

--
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.
636-357-1548


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to