Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

(jcwren) Re: (3) Sort this data

by jcwren (Prior)
on Nov 19, 2000 at 19:55 UTC ( [id://42423]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Sort this data
in thread Sort this data

Nice solution! But a couple of questions:

It would be interesting to benchmark if using unshift() into the $hashrefs array would be more or less efficient than messing with $i. If nothing else, it would be two lines shorter, and more Perlish.

And perhaps this is too early in the morning, but why are you splicing by -4, and then popping @data?

It's Sunday morning where I am, and I'm too lazy to try to write a coherent benchmark...

--Chris

e-mail jcwren

Replies are listed 'Best First'.
Re: (jcwren) Re: (3) Sort this data
by japhy (Canon) on Nov 19, 2000 at 20:04 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://42423]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-03-28 11:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found