develooper Front page | perl.fwp | Postings from December 2001

Re: The Santa Claus Golf Apocalypse

Thread Previous | Thread Next
Robin Houston
December 3, 2001 06:23
Re: The Santa Claus Golf Apocalypse
Message ID:
On Mon, Dec 03, 2001 at 02:16:16PM +0000, Simon Cozens wrote:
>     perl -aln0 -F"\n" -e ...
> (Stick an entire file into @F, a line per element.)

....unless the file contains \0 characters...

To cope with that, you have to use
	perl -aln0777F

But that counts as 10 characters under the golf rules, whereas


is only five, so I suspect it may not be all that useful. But I
could be wrong -- I've only managed 98 strokes so far.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About