in reply to Re: How to remove all new line ?
in thread How to remove all new line ?

I personally believe that however appealing this can be, to be very sure, perldoc perlrun recommends using 0777 rather than 0 because "there is no legal byte with that value."

Update: JavaFan is actually right, since for some reason I was thinking of an entirely different problem, namely that of slurping, and not to the OP's. Which anyway would work with -0777 and not -l0777... Apologies!

--
If you can't understand the incipit, then please check the IPB Campaign.

Replies are listed 'Best First'.
Re^3: How to remove all new line ?
by JavaFan (Canon) on Aug 19, 2008 at 11:22 UTC
    Using -l0777pe0 will not work. It will print ÿ after each line. (Now, -l0pe0 doesn't really work either, it prints a NUL byte after each line. But you won't see that...)