Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Power of two round up.

by jynx (Priest)
on Dec 20, 2000 at 06:12 UTC ( #47524=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    sub shifty {
    ...
       map { return ++$v } map { $v |= $v >> $_ } (1,2,4,8,16);
    }
    
  2. or download this
    
    sub shifty2 {
    ...
       return ++$v;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2014-10-20 22:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (92 votes), past polls