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

Re: [MacPerl] Re: OT dot files



At 15.30 -0500 1999.01.12, Bart Lateur wrote:

>Yes, using "\0" (or "\000"). But open() chokes on it.

sysopen() does, too.

  #!perl -w
  use Fcntl;

  sysopen(A, ":a\0b", O_WRONLY|O_CREAT, 0755) or die $!;
  print A "heh";
  close(A);

  sysopen(B, ":a\0b", O_RDONLY, 0755) or die $!;
  print while <B>;
  close(B);

That produces a file called "a", and prints the text "heh".

--
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 mac-perl-request@iis.ee.ethz.ch