[OT] golf

Greg McCarroll greg at mccarroll.org.uk
Tue Mar 4 23:31:13 GMT 2008


On Tue, Mar 04, 2008 at 11:03:59PM +0100, Abigail wrote:
> On Tue, Mar 04, 2008 at 04:46:03PM -0500, Uri Guttman wrote:
> > >>>>> "A" == Abigail  <abigail at abigail.be> writes:
> > 
> >   A> On Tue, Mar 04, 2008 at 06:53:00PM +0000, Nicholas Clark wrote:
> >   >> 
> >   >> perl -0777lp015e0
> > 
> >   A> I've used a similar trick to replace characters. For instance,
> >   A> to replace \r with \n, one could do:
> > 
> >   A>     perl -015pl12e1
> > 
> > override the -0777 (which slurps the whole file in). i don't see how
> > slurping and also setting -l and -015 would work. of course i didn't run
> > it as that would take the fun out of analyzing it. :)
> 
> No, Nick's code is correct. It's short for
> 
>    perl -0777 -l -p -015 -e 0
> 
> The first -0 sets $\, the second sets $/.
> 

With the greatest respect and love in the world I'd just like to point out
that you are all sick weirdo's ;-)

G.


More information about the london.pm mailing list