Forum: Perl Apr 23rd, 2008 |
| Replies: 4 Views: 1,134 Hey There,
Are you having problems modifying a variable you declare outside of the loop?
This code will increment the variable in the foreach loop and change it's value outside the loop.
Let... |
Forum: Perl Dec 2nd, 2007 |
| Replies: 10 Views: 2,116 Hi,
I'm not sure I follow on the first one, but for the second part, this might help:
$already_putin=2.00 # use 0 to start;
$input = 1.00;
$mean_average = ($already_putin+$input)/2; |