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

Re: [MacPerl] IO:: problems



Regarding your message on 18 Sep 1997 18:36:49 U

You do need some brackets I think:

>#!perl -w
>
>use IO::File;
>
>print "Droped @ARGV\n";
>$FileName = $ARGV[0];
># Uncomment the following to change ":" to "/"
>#$FileName =~ s/:/\//g;
>print "FileName = " . $FileName . "\n";
>$File = new IO::File($FileName);
_____________________^_________^
>print "FileRef = " . ref($File) . "\n";
>print $File->getline . "\n";
>$File->close;

That seems to work with a file from anywhere on the HD.

Alan Fry



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