in reply to How can I print all lines?
my $file = <FILE>; my @column; while (<FILE>) { @column=($file);
You only set $file once and never change it. You could assign it as part of the while conditional:
while (my $file = <FILE>) {
and please, put your code inside <code> tags and your data inside other <code> tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How can I print all lines?
by 345qwerty (Novice) on Aug 09, 2017 at 09:33 UTC | |
by hippo (Archbishop) on Aug 09, 2017 at 09:41 UTC | |
by 345qwerty (Novice) on Aug 10, 2017 at 11:52 UTC | |
by SuicideJunkie (Vicar) on Aug 10, 2017 at 15:00 UTC |