Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Golf/Perlish solution to this problem?

by johngg (Canon)
on Jan 31, 2008 at 10:49 UTC ( [id://665319]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
           map { $_ % 2 ? ( $high --, $low ++) : ( $low ++, $high --) }
           1 .. $length / 2;
    }
    
  2. or download this
    hog ace big gog fig cat dog egg
    
  3. or download this
    sub reOrder
    {
    ...
           1 .. $length / 2;
        return @slice, $low == $high ? $low : ();
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-16 06:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found