markguy has asked for the wisdom of the Perl Monks concerning the following question:
And what I'm doing is basically parsing those lines to slap the info into a seperate data structure. My problem is that I can't eval the right side list values into a list. I realize there are other ways to go about this ("Uh, how about the first script just dumps the data structure somewhere?"), but now that I've tried to do it the first way off the top of my head and failed, I'm intrigued... and irritated. So, what am I missing here?@{ $blah{ foo } } = ( 100 .. 104 , 105 , 106 .. 123 ); @{ $blah{ bar } } = qw| 100 101 102 103 |;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: List as a string, eval'd back to the list?
by bbfu (Curate) on Mar 30, 2001 at 02:41 UTC | |
by markguy (Scribe) on Mar 30, 2001 at 08:07 UTC | |
|
Re: List as a string, eval'd back to the list?
by princepawn (Parson) on Mar 30, 2001 at 01:28 UTC |