Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
We don't bite newbies here... much
 
PerlMonks  

Re: sorting a list according to numeric values using the function splice()

by murugu (Curate)
on Aug 09, 2010 at 10:32 UTC ( #853774=note: print w/ replies, xml ) Need Help??


in reply to sorting a list according to numeric values using the function splice()

Are you sure that it is splice? I think it should be sort.

Regards,
Murugesan Kandasamy
use perl for(;;);


Comment on Re: sorting a list according to numeric values using the function splice()
Re^2: sorting a list according to numeric values using the function splice()
by changma_ha (Sexton) on Aug 09, 2010 at 10:49 UTC

    Actually i am a newbie in perl so practicing some of the exercises from a book. That is why i am a bit confuse because i could do sorting easily with sort(), they ask to do with the splice(), Is it possible to do with it?

      So the book is asking you to implement various sorting algorithms in perl, and to not use the built-in sort function. That makes a little more sense, if nothing else than to show why most of the time you will want to use the built-in version of sort.

      --MidLifeXis

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://853774]
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: (18)
As of 2014-04-18 18:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (471 votes), past polls