Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
P is for Practical
 
PerlMonks  

Re: changing the position of an element in an array

by jbrugger (Parson)
on Nov 17, 2005 at 01:55 UTC ( [id://509313]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to changing the position of an element in an array

Trying yourself is allways good :)
hint: Use grep to find your element, splice to delete it, then push it on the array.
Ps. Also use the Super Search, all of your 3 sub-questions have been answered here many times, and there are many ways to do it.

"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.
  • Comment on Re: changing the position of an element in an array

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://509313]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.