Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re: Re: for loops

by amarceluk (Beadle)
on May 25, 2002 at 16:54 UTC ( #169281=note: print w/replies, xml ) Need Help??

in reply to Re: for loops
in thread for loops

$i++ is the equivalent of
where the = is an operator. It's not just sitting there, like it does in math, saying "these two things are equal"; it tells Perl to make the two things equal. So here it's saying "take the current value of $i and add 1, and make that the new value of $i." Then the for loop continues with the new value of $i. This happens each time the loop runs, until $i reaches 100.

"Abby-somebody. Abby-normal."
Young Frankenstein

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2020-05-28 21:34 GMT
Find Nodes?
    Voting Booth?
    If programming languages were movie genres, Perl would be:

    Results (166 votes). Check out past polls.