Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: How to (ab)use sort

by kcott (Canon)
on Apr 23, 2012 at 00:15 UTC ( #966511=note: print w/replies, xml ) Need Help??

in reply to How to (ab)use sort

G'day Grimy,

I'm getting a different result under Mac OS X:

ken@ganymede: ~/tmp $ cat use strict; use warnings;()= sort{index+0x47,&$a($b)}sub{print&{;pop}}, sort{sub J{$!++&1}[0]}sub{exec''},map{@$_} sort{sub _{[(pop)x((1<<$!-->>47)|1)]}!{()= sort{my$_=$a;$a=_(sub{$_})if!/0/}$a,$b,0}} sort J('rke%ca hlrPe rhetoan tus;J')=~/./g ken@ganymede: ~/tmp $ perl Can't use string ("J") as an ARRAY ref while "strict refs" in use at p line 4. ken@ganymede: ~/tmp $ perl -v This is perl 5, version 14, subversion 2 (v5.14.2) built for darwin-th +read-multi-2level ...

-- Ken

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://966511]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2016-12-11 07:08 GMT
Find Nodes?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:

    Results (168 votes). Check out past polls.