Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Schwartzian Transform and memory allocation.

by thelenm (Vicar)
on Jun 19, 2002 at 16:18 UTC ( #175754=note: print w/ replies, xml ) Need Help??


in reply to Schwartzian Transform and memory allocation.

It looks like you might not be sorting what you think you're sorting... you're sorting based on the entire line. Do you mean to sort on a specific column? If so, then change

sort { $b->[0] cmp $a->[0] }
to
sort { $b->[$i] cmp $a->[$i] }
where $i is the 1-based column number that you want to sort on.

I don't think that will keep it from being a memory hog, though...

-- Mike

--
just,my${.02}


Comment on Re: Schwartzian Transform and memory allocation.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (13)
As of 2014-12-22 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (121 votes), past polls