Just another Perl shrine | |
PerlMonks |
Reading and producing variable lists (w/o hashes!)by bingohighway (Acolyte) |
on May 01, 2009 at 09:44 UTC ( [id://761239]=perlquestion: print w/replies, xml ) | Need Help?? |
bingohighway has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks, I am trying to read in a list of variables from a text file e.g. $var1, $apple, $pear and having these variables useable in my code. I've tried grabbing the text and using something like $$array[0] from the extracted variables list, and I've tried using eval(). None seem to work. I can do this with hashes but would like to do this with without! I am also fully aware that not using strict may come back to haunt me. Cheers!
Back to
Seekers of Perl Wisdom
|
|