in reply to Re^2: Missing $ on loop variable at measurements2.pl line 69.
in thread Missing $ on loop variable at measurements2.pl line 69.
this happens because you haven't assigned any value to $person_count (only to $vision_total).
try changing my ($vision_total,$person_count)=0; to my ($vision_total,$person_count)=(0,0);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"one who asks a question is a fool for five minutes; one who does not ask a question remains a fool forever."
mk at rio dot pm dot org
try changing my ($vision_total,$person_count)=0; to my ($vision_total,$person_count)=(0,0);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"one who asks a question is a fool for five minutes; one who does not ask a question remains a fool forever."
mk at rio dot pm dot org
In Section
Seekers of Perl Wisdom