Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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?
[Corion]: A good weekstart to everybody!

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2018-06-18 08:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?



    Results (109 votes). Check out past polls.

    Notices?