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

Re: Can't get rid of: Useless use of private variable in void context (look up, look above, look before)

by Anonymous Monk
on Feb 25, 2013 at 09:58 UTC ( #1020481=note: print w/ replies, xml ) Need Help??


in reply to Can't get rid of: Useless use of private variable in void context

for ( $iterator ; $iterator < @$MapFile ; $iterator++ ) { for ( $iterator = 1; $iterator < @$MapFile ; $iterator++ ) { for ( ; $iterator < @$MapFile ; $iterator++ ) {
See also Why is the error thrown from close(FH) when the error is the missing <> on while(FH)?, Re: Why is the error thrown from close(FH) when the error is the missing <> on while(FH)? ( line number mismatch, look above, look before )(Bareword found in conditional)
  • Comment on Re: Can't get rid of: Useless use of private variable in void context (look up, look above, look before)
  • Download Code

Replies are listed 'Best First'.
Re^2: Can't get rid of: Useless use of private variable in void context (look up, look above, look before)
by tobias_hofer (Friar) on Feb 25, 2013 at 10:09 UTC

    Thanks a lot!
    yes, it has been the iterator variable.
    I have put the definition into the for(.. , and its working fine.

    Many Thanks and best regards!
    Tobias

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2016-08-28 07:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (391 votes). Check out past polls.