- or download this
@array = <FILE>;
- or download this
while(<FILE>) {
push(@array, $_);
}
- or download this
open (DF, "test.txt") || die "Can't read 'test.txt': $!\n"
- or download this
use strict;
use warnings;
- or download this
perl -MO=Deparse -e 'open (DF, "test.txt") || die "Cant read test.txt\
+n";'
- or download this
die "Can't read test.txt\n" unless open DF, 'test.txt';