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

[MacPerl] sysopen



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

--
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