in reply to _ in a number within quotes
What you are seeing is a timing issue. Warnings get printed out via STDERR. Your print statements print out via STDOUT. These are two separate output streams. Sometimes one stream gets ahead of the other. $a has not yet become 2. The warning you are seeing is, in fact, coming from the $a +=1; statement.
You can see this for yourself by either finding line 6 (it is the one containing $a += 1;) or by changing all of the print statements to begin with print STDERR "...".
Best, beth
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: _ in a number within quotes
by AnomalousMonk (Archbishop) on Apr 19, 2009 at 16:58 UTC |