Missing semicolons aside, it might read more clearly as:
my $file = "..."; unless( open( FILE, "<", $file ) ) { print STDERR "Error opening '$file': $!\n" print STDERR "Hit <ENTER> to exit\n"; scalar <STDIN>; exit 1; } my @array = <FILE>; close( FILE ) or die "close '$file': $!\n";
In reply to Re: Problem with do statement
by Fletch
in thread Problem with do statement
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |