Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

clinton's scratchpad

by clinton (Priest)
on Nov 01, 2006 at 15:13 UTC ( #581685=scratchpad: print w/ replies, xml ) Need Help??

#!/usr/bin/perl use strict; use warnings; my $m = shift @ARGV; chomp $m; my %func = ( '01' => sub { return $m / ( ( 10 + $_[0] )**0.1 ) }, '02' => sub { return $m / ( ( 10 + $_[0] )**0.2 ) }, '03' => sub { return $m / ( ( 10 + $_[0] )**0.3 ) }, '04' => sub { return $m / ( ( 10 + $_[0] )**0.4 ) }, '05' => sub { return $m / ( ( 10 + $_[0] )**0.5 ) }, '06' => sub { return $m / ( ( 10 + $_[0] )**0.6 ) }, '07' => sub { return $m / ( ( 10 + $_[0] )**0.7 ) }, '08' => sub { return $m / ( ( 10 + $_[0] )**0.8 ) }, '09' => sub { return $m / ( ( 10 + $_[0] )**0.9 ) }, ); for ( sort keys %func ) { print "$_:\n"; my $f = $func{$_}; for ( 10, 20, 50, 100, 200, 500, 1000, 2000, 5000 ) { my $v = int( $f->($_) ); printf "%-4d: %-150s %d\n", $_, '@' x $v, $v; } print "\n\n"; }
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2014-09-24 00:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (243 votes), past polls