in reply to Re^3: Control Structure problem, mistake can't be found
in thread Control Structure problem, mistake can't be found
or, if I suspected that the "SHEET" could point to a very big file,my @lines = map { chomp; [split] } <SHEET>;
my @lines; chomp, push @lines, [split] for <SHEET>;
andmy @lines = map [split], <$sheet>;
because for was just wrong and because split already chomped the string...my @lines; push @lines, [split] while <$sheet>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Control Structure problem, mistake can't be found
by blazar (Canon) on Aug 26, 2008 at 13:27 UTC |