It'd be nice if <> returned '' for EOF and undef for error. Even implementing that in a backward-compatible way would be tricky (a pragma that turns on that behavior within a lexical scope and teaching while(<>) to deal with it -- or making this change in Perl 6).
- tye
In reply to Re^10: Best way to handle readline errors? (perl 6?)
by tye
in thread Best way to handle readline errors?
by jrw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |