Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Useless use of private variable in void context

by sflitman (Hermit)
on Oct 11, 2009 at 19:11 UTC ( [id://800563]=note: print w/replies, xml ) Need Help??


in reply to Useless use of private variable in void context

The problem is for($i;... as nothing is happening to $i there. Change it to $i=0, warning should go away. It is a little weird that the warning appears on the last line of the for-loop, but that's probably how the parsing worked out.

HTH,
SSF

Log In?
Username:
Password:

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

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

    No recent polls found