in reply to reading a file, put into array. Missing first line
With the previous suggestion, here is a simplified version of your code:
use warnings; use strict; my $file = 'filename.txt'; open my $fh, '<', $file or die "cant open : $!"; my @comp = sort <$fh>; close $fh; print "@comp";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: reading a file, put into array. Missing first line
by kaka_2 (Sexton) on Oct 11, 2013 at 18:38 UTC |