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

Re: (CLPM) reorder via swap

by o0lit3 (Friar)
on Aug 17, 2004 at 18:53 UTC ( #383764=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @array = qw(put these in a different order);
    @order = qw(1 3 5 4 2 0);
    ...
       #23456789012345678901234
       map${@_[0]}[$_],@{$_[1]}
    }
    
  2. or download this
    #!/perl -ln0a
    map$F[$_],@F[@F/2..$#F]
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2023-10-04 16:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?