develooper Front page | perl.fwp | Postings from February 2005

Re: "Secret" operators

Thread Previous | Thread Next
From:
philippe.bruhat
Date:
February 1, 2005 07:08
Subject:
Re: "Secret" operators
Message ID:
20050201150637.GA4304@localhost.localdomain
Le mardi 01 février 2005 à 11:49, José Castro écrivait:
> Hi, guys.
> 
> Apart from the "secret eskimo greeting" and the "goatse operator", can
> anyone tell me about other "secret" operators?
> 
> Examples:
> 
> eskimo:   }{
> goatse:   =()=
> 
> eskimo usage:   perl -ne '}{print $.'
> goatse usage:   perl -e '$_="zbrughau";$b=()=/u/g;print $b'
> 

There's also the golf version of scalar(): ~~

Usage: perl -e 'print~~gmtime'

I'd call it the "spit" operator (based on my understanding of the :P~
smiley), but maybe it already has a name.

-- 
 Philippe "BooK" Bruhat

 Solve a problem before you become part of it.
                                    (Moral from Groo The Wanderer #60 (Epic))

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