[Israel.pm] "The Cost of Newlines"

David Baird davidlbaird at gmail.com
Mon Aug 8 21:46:10 PDT 2005


> > perl -e 'print "\n"x1000000;' > your_personal_newline_repository
> 
> The rumour has it they're gonna tie each and every one of your newlines
> to a carriage return and sink them all to the bottom of the ocean that
> way.

This little one-liner proves the extra value of Windows over Unix. On
Windows the file created will be twice as large as the one created on
Unix.

-David :-)




More information about the Perl mailing list