in reply to Re: Looking for pointers or optimizations.
in thread Looking for pointers or optimizations.
It worked fine but yes there was an empty file named 1.
If I change it to the following it should work as I meant it to:
open (my $fh, "<", $ARGV[0]) or die "Can't open input file!"; my @words; while (<>) { push(@words, $_); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Looking for pointers or optimizations.
by choroba (Cardinal) on Aug 21, 2012 at 14:00 UTC | |
Re^3: Looking for pointers or optimizations.
by 2teez (Vicar) on Aug 21, 2012 at 14:05 UTC | |
by thmsdrew (Scribe) on Aug 21, 2012 at 14:20 UTC | |
by 2teez (Vicar) on Aug 21, 2012 at 14:57 UTC | |
by SerZKO (Beadle) on Aug 21, 2012 at 19:12 UTC | |
by chromatic (Archbishop) on Aug 21, 2012 at 19:59 UTC | |
| |
by choroba (Cardinal) on Aug 21, 2012 at 19:58 UTC |
In Section
Seekers of Perl Wisdom