in reply to Re^2: Generating a readline error
in thread Generating a readline error
Its not clear to me why corrupted data case needs to be checked for, just let the program die if read can't get bytes. I mean what sort of error recovery would be feasible in that case by Perl? I think none.
#!/usr/bin/perl -w use strict; open (IN, "asdf"); #this fails but return code ignored print while (<IN>); #readline() on closed filehandle #IN at C:\TEMP\ioerror.pl line 6.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Generating a readline error
by JavaFan (Canon) on Jul 17, 2009 at 22:16 UTC | |
by Marshall (Canon) on Jul 17, 2009 at 23:29 UTC | |
by JavaFan (Canon) on Jul 18, 2009 at 00:18 UTC | |
by Marshall (Canon) on Jul 18, 2009 at 00:49 UTC |