good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Parsing for [] in a fileby MidLifeXis (Monsignor) |
on Nov 17, 2011 at 17:57 UTC ( [id://938656]=note: print w/replies, xml ) | Need Help?? |
Except it will only work for the first key in %results, as the position in DATA will be at eof. If you flip around the foreach and the while, it should do as intended. Update: If you load the variable names (%results), make sure that you use chomp. --MidLifeXis
In Section
Seekers of Perl Wisdom
|
|