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

Re: [MacPerl] sysopen



At 15.01 -0400 1999.07.12, Geoffrey C Kinnel wrote:
>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.

That was in reference to the idea that you need to use constants, not
numerals.  The constants should work on any platform.  Paul is right on, I
think.

--
Chris Nandor          mailto:pudge@pobox.com         http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10  1FF77F13 8180B6B6'])

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