Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: For loop problem

by srawls (Friar)
on Jun 03, 2001 at 22:31 UTC ( #85349=note: print w/replies, xml ) Need Help??


in reply to For loop problem

As an update to my post:

Even more baffaling is this:

for($.++...$.++.$.){print"$_\n"}
If you change the first ++ to be a postincrement instead of a preincrement, it prints 0 to 12, just what I would expect, but still not my desired 1 to 12.

More baffled than ever:
The 15 year old, freshman programmer,
Stephen Rawls

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://85349]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2017-07-20 13:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (303 votes). Check out past polls.