[Israel.pm] difference between -0 and -0777
offer.kaye at gmail.com
Mon Nov 15 08:52:55 PST 2004
According to "perldoc perlrun", using the "-0" switch without any
digits uses the null char as separator, and using -0777 causes Perl to
slurp in files whole because there is no legal char with that value.
My question is, what in practice is the difference between the two
values. As far as I could tell, these two commands do the same thing:
perl -0 -pi -e's/s1/s2/g' file
perl -0777 -pi -e's/s1/s2/g' file
Is there a difference at all between using "-0" and "-0777"?
More information about the Perl