Yah, I know... the title makes no sense. Maybe part of my problem is because I can't get properly squared away on what the problem actually is... anyway:
I have a script that is reading a huge list of hardcoded crap (and I really do mean *crap* here) from a seperate perl script to convert this to some semblance of a reasonable data scheme. The line in particular that is causing the problem is roughly akin to:
@{ $blah{ foo } } = ( 100 .. 104 , 105 , 106 .. 123 );
@{ $blah{ bar } } = qw| 100 101 102 103 |;
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?
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.