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

Re: [MacPerl] sysopen





Chris Nandor wrote:
> 
> What am I missing (if anything)?
> 
>   #!perl -wl
>   use Fcntl;
>   sysopen FILE, "foo", O_RDWR|O_TRUNC|O_CREAT or die $!;
>   print FILE "ha!";
>   close FILE;
> 
>   __END__
> 
> Returns:
> 
>   # Filehandle main::FILE opened only for input.
>   File 'Untitled #4'; Line 4

I think you might be missing a newer version of perlfunc.pod. The
one I got with v5.005.03 of 19-Apr-1999 says that the 0,1 and 2
MODE params don't work on the Mac (or OS/390 or VM/ESA Unix).
Maybe that's the problem.

Geoff

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org