Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by gellyfish (Monsignor)
on Sep 08, 2006 at 11:56 UTC ( [id://571937]=note: print w/replies, xml ) Need Help??


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

I think you'll find it's the:

for my ($counter=0;$counter<9;$counter++)
construct (which you have two of.) You either want to move the move the my inside the brackets like:
for (my $counter=0;$counter<9;$counter++)
Or even better use the more perl-ish
foreach my $counter (0 .. 8)

/J\

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-04-25 23:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found