I second what ++LanX said. But also, if the for loop is only going once, then @$lines only has one element. Are you sure $lines is an array-ref? Or did you really mean foreach my $line (@lines)?
In reply to Re: Store the outcome of a foreach loop in an array
by pryrt
in thread Store the outcome of a foreach loop in an array
by perl_5eeker
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |