Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: mini-golf: convert integer into list of powers of two

by tobyink (Canon)
on May 24, 2012 at 12:30 UTC ( #972236=note: print w/replies, xml ) Need Help??


in reply to Re: mini-golf: convert integer into list of powers of two
in thread mini-golf: convert integer into list of powers of two

That's 32 by my reckoning...

Using the assign-within-grep trick I applied to BrowserUK's solution, it is possible to take it down to 31 though:

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2021-05-13 07:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (134 votes). Check out past polls.

    Notices?