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 reply to Re^2: Parsing for [] in a file
by MidLifeXis
in thread Parsing for [] in a file
by HJ
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |