Re: using string as hashref

2004-04-25 Thread James Edward Gray II
On Apr 25, 2004, at 2:12 PM, Andrew Gaffney wrote: But is that faster than using eval()? You could fire up the Benchmark module and find out... Faster or not though, I very much prefer it. It's a subroutine built to do what you want, walk a hash tree. Using full fledge Perl code for that is o

Re: using string as hashref

2004-04-25 Thread Andrew Gaffney
James Edward Gray II wrote: On Apr 25, 2004, at 1:40 PM, Andrew Gaffney wrote: James Edward Gray II wrote: On Apr 25, 2004, at 12:56 PM, Andrew Gaffney wrote: 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 r

Re: using string as hashref

2004-04-25 Thread James Edward Gray II
On Apr 25, 2004, at 1:40 PM, Andrew Gaffney wrote: James Edward Gray II wrote: On Apr 25, 2004, at 12:56 PM, Andrew Gaffney wrote: 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 st

Re: using string as hashref

2004-04-25 Thread Andrew Gaffney
James Edward Gray II wrote: On Apr 25, 2004, at 12:56 PM, Andrew Gaffney wrote: 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 simil

Re: using string as hashref

2004-04-25 Thread James Edward Gray II
On Apr 25, 2004, at 12:56 PM, Andrew Gaffney wrote: 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 str