Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: execution of command inside for loop fails

by jethro (Monsignor)
on Oct 01, 2013 at 13:30 UTC ( #1056479=note: print w/replies, xml ) Need Help??

in reply to execution of command inside for loop fails

I see "i++" instead of "$i++". I would suggest using foreach loop in such cases, no need for a loop variable.

UPDATE: Please next time also add a description of how it is not working. You'll get much better answers that way

  • Comment on Re: execution of command inside for loop fails

Replies are listed 'Best First'.
Re^2: execution of command inside for loop fails
by kaka_2 (Sexton) on Oct 01, 2013 at 13:35 UTC
    Sorry. it was typo but i have $i++ in my script.

      That doesn't seem to be your only typo. Please use copy&paste to copy your actual code.

      In programming, every single character can be the difference between a program working and failing. It's not efficient at all to work with something that vaguely looks like your real code, but gets some details wrong.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056479]
[LanX]: Jeez .... UTF8 in my company is driving me crazy
[LanX]: seems like my boss has activated an extra UTF8 encoding such that my JSON stuff arives twice encoded in the browser ... oO
[LanX]: he loves to do this with regexes ...
LanX considers looking for a new project ...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2018-03-19 23:22 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (246 votes). Check out past polls.