c_lhee has asked for the wisdom of the Perl Monks concerning the following question:
Everytime the script runs it should replace the word "monk" with
values for @array = (perl1, perl2, perl3);
However, there seems to be a problem when i put the value $total_$array....
$total_monk1 = $total_monk;
if ( ($monktot == 0) && ($total_monk1 == 0)) {$total_monk == 0;}
else {
$total_monk = $total_monk1 /($monktot-$total_monkna);
$total_monk = sprintf("%0.2f%", $total_monk);}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Style, and maybe post entire program?
by cebrown (Pilgrim) on Jul 31, 2002 at 03:06 UTC | |
|
Re: changing value to ones on array
by DamnDirtyApe (Curate) on Jul 31, 2002 at 03:51 UTC | |
|
Re: changing value to ones on array
by japhy (Canon) on Jul 31, 2002 at 10:08 UTC |