XP is just a number | |
PerlMonks |
Re^5: flipflop .. operator. More about $. varby pbeckingham (Parson) |
on Aug 17, 2004 at 14:01 UTC ( [id://383667]=note: print w/replies, xml ) | Need Help?? |
What I meant was that the result of the .. terms are compared to $. if the terms are numeric. For example: Will print lines 1 through 10 of the input, by using $. to compare to, which is 1-based. $. doesn't go anywhere if you are not using <>, it just doesn't get reset and incremented. Furthermore, incrementing it yourself is probably not a good idea. Who knows what other (called) code might use it.
pbeckingham - typist, perishable vertebrate.
In Section
Seekers of Perl Wisdom
|
|