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

Re: [MacPerl] IO:: problems



There does seem to be something curious about IO::File and IO::Handle.
Using this droplet as a test:

        use IO::File;
        $f = shift;
        $fh = new IO::File;
        $fh->open($f);
        print <$fh>;

works partially. If the name ends in a space (!) or <$fh->open($f, "r")>
the error message "Read on closed filehandle <GENO>" results. However
<$fh->open(">$f")> (etc.) seems to do what is expected.

If "File" is replaced by "Handle" the error message "can't locate
auto/IO/Handle/open.al in @INC" results in all cases.

Does anyone else get this?

Alan Fry




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