Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^3: Average/mean calculator

by roboticus (Chancellor)
on Jun 04, 2014 at 20:13 UTC ( #1088734=note: print w/replies, xml ) Need Help??


in reply to Re^2: Average/mean calculator
in thread Average/mean calculator

Paradizingmania:

You should read the perlop documentation, it describes what all the operators are. Having said that:

  • $a <= $b means "$a is less than or equal to $b"
  • $total += $num means the same as $total = $total + $num
  • $count++ means the same as $count = $count+1

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1088734]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (11)
As of 2018-07-16 18:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (346 votes). Check out past polls.

    Notices?