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

Re: "Secret" operators

Thread Previous | Thread Next
February 1, 2005 07:08
Re: "Secret" operators
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About