in reply to Store the outcome of a foreach loop in an array
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)?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Store the outcome of a foreach loop in an array
by perl_5eeker (Novice) on Jan 10, 2019 at 22:39 UTC | |
by haukex (Archbishop) on Jan 10, 2019 at 22:47 UTC | |
by perl_5eeker (Novice) on Jan 10, 2019 at 23:25 UTC | |
by haukex (Archbishop) on Jan 11, 2019 at 08:05 UTC | |
by AnomalousMonk (Archbishop) on Jan 10, 2019 at 23:39 UTC | |
by LanX (Saint) on Jan 11, 2019 at 00:04 UTC | |
by LanX (Saint) on Jan 10, 2019 at 22:46 UTC |