[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] IO:: problems



Alan Fry writes:
|        $fh->open($f);
|        print <$fh>;
|2       If there is a space at the end of the file name nothing happens
|        at all -- no error message no print().

With white space at the end, the open fails, so the print fails as
well. Both return an error, but because the little example doesn't
do any error checking, you don't get any error messages. It would be
completely and horribly wrong for either open or print to output
their own error messages instead of returning an error.

Brian

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch