Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Missing $ on loop variable at measurements2.pl line 69.

by Velaki (Chaplain)
on Sep 08, 2006 at 11:58 UTC ( [id://571938]=note: print w/replies, xml ) Need Help??


in reply to Missing $ on loop variable at measurements2.pl line 69.

You need to bring the my inside the for statement for each offending line in order to declare the variable.

for my ($counter=0;$counter<9;$counter++)
needs to be
for (my $counter=0;$counter<9;$counter++)

Hope this helped,
-v.

"Perl. There is no substitute."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://571938]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2024-04-24 15:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found