Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Golf/Perlish solution to this problem?

by johngg (Canon)
on Jan 31, 2008 at 10:49 UTC ( #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
Node Status?
node history
Node Type: note [id://665319]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2021-01-24 03:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?