Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
It works if I comment out the last two lines, however with them in I get an error? Ideas?$file="c:\\file.txt"; open(FILE,"<$file") || do { {local( $| )= 1; print "Error xxx\n"; print "Hit <ENTER> to exit.\n"; my $resp= <STDIN>; }# end local exit; }# end do @array=<FILE>; close(FILE) || die "close0: $!\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Problem with do statement
by Joost (Canon) on Apr 18, 2005 at 14:27 UTC | |
|
Re: Problem with do statement
by Zaxo (Archbishop) on Apr 18, 2005 at 14:30 UTC | |
by revdiablo (Prior) on Apr 18, 2005 at 17:22 UTC | |
|
Re: Problem with do statement
by Fletch (Bishop) on Apr 18, 2005 at 14:34 UTC |