Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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?
[beech]: fencepost?
beech is protected with velcro
[Lady_Aleena]: How is velco protective? It sticks to a lot of things.
[beech]: cant be tyed to a fencepost by my feet, duh

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (8)
As of 2017-06-23 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (539 votes). Check out past polls.