Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: (Golf) Giving Change

by Trimbach (Curate)
on Jun 12, 2001 at 06:37 UTC ( #87713=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub c {($a,$c)=@_;@c=@$c;return map{$a>$_?
    &{sub{$a-=$_*($b=int($a/$_));"$b x $_"}}:""} reverse @c}
    
  2. or download this
    ,,1 x 20,,,2 x 1,2 x 0.25,,,
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (8)
As of 2014-12-18 04:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (41 votes), past polls