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

Re: Re: Programs/Methods for analyzing an existing Perl based system

by Beatnik (Parson)
on May 29, 2002 at 23:47 UTC ( #170254=note: print w/ replies, xml ) Need Help??


in reply to Re: Programs/Methods for analyzing an existing Perl based system
in thread Programs/Methods for analyzing an existing Perl based system

sub stats { unless ($numberyes) { &grab_numbers; } $total_votes = ($numberyes + $numberno); $onevote = (100 / $total_votes); $percentyes = ($numberyes * $onevote); $percentno = ($numberno * $onevote); $percentyes = int($percentyes); $percentno = int($percentno); if (($percentyes + $percentno) < 100) { if ($percentyes > $percentno) { $percentyes+=1; } elsif ($percentyes < $percentno) { $percentno+=1; } } }


Greetz
Beatnik
... Quidquid perl dictum sit, altum viditur.


Comment on Re: Re: Programs/Methods for analyzing an existing Perl based system
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2014-04-19 16:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (483 votes), past polls