[Israel.pm] difference between -0 and -0777
Offer Kaye
offer.kaye at gmail.com
Mon Nov 15 10:34:47 PST 2004
On Mon, 15 Nov 2004 19:09:25 +0200, Gaal Yahas wrote:
> >
> > Is there a difference at all between using "-0" and "-0777"?
>
> They mean the NUL character, ASCII 0. Compare the outputs:
>
> /bin/echo -e 'a\000b\000c\000d' | cat -A
> /bin/echo -e 'a\000b\000c\000d' | perl -nl0 -e 'print ">>$_<<\n"'
> /bin/echo -e 'a\000b\000c\000d' | perl -nl000 -e 'print ">>$_<<\n"'
>
I don't understand - I asked about the difference between "-0'" and
"-0777", you reply about the difference between "-0" and "-000"? What
is the connection?
--
Offer Kaye
More information about the Perl
mailing list