On Fri, Feb 06, 2004 at 09:46:50PM +0000, Ton Hospel scripsit:
> See also:
> echo | perl -lpe 'print q'
> 
> which outputs:
> 
> }continue{print or die qq(-p destination: $!\n)
>
Well, I had no problem with the thread.... until now! How the f... does this 
work????
 
> Golfers also use the fact that in a -p/-n program the next character 
> is a ;, for example 

What do you mean by 'the next character is a ';''?

> #!perl -alp0
> s!.+!$;[EMAIL PROTECTED]&,$_}=%$z]=$z=$_.$&[EMAIL PROTECTED],@F!eg;$_=pop@
> 

Wonderfull, I do not understant _how_ it works (I didn't even try right now, 
is almost midnight here and I'm quite tired....) but I realy like it (I like
golf basically:-) )

Leo
-- 
Leo "TheHobbit"
One Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darknes bind them
In the land of Mordor where the Shadow lie.


Reply via email to