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

Re: The Santa Claus Golf Apocalypse

Thread Previous | Thread Next
From:
Robin Houston
Date:
December 3, 2001 06:23
Subject:
Re: The Santa Claus Golf Apocalypse
Message ID:
20011203142321.A17229@puffinry.freeserve.co.uk
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

	@a=<>

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.

 .robin.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About