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

Re: Golf/Perlish solution to this problem? (&2)

by tye (Sage)
on Jan 31, 2008 at 03:00 UTC ( #665268=note: print w/replies, xml ) Need Help??


in reply to Golf/Perlish solution to this problem?

sub hllhh { my( $hi )= @_; my $lo= 1; return map $_ & 2 ? $lo++ : $hi--, 1..$hi; } print join ' ', hllhh(8), $/

- tye        

Log In?
Username:
Password:

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

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