
fenniger
Novice
Sep 13, 2008, 11:24 PM
Post #1 of 2
(227 views)
|
|
why sometimes $. doesnt work
|
Can't Post
|
|
hello there, very basic question: at first I wrote a segment of code like this: print OUTPUT "word num $.: $_\n" foreach(@allwords) and the output came out to be: word num 0: *the word* word num 0: *the next word* . . so I thought something was wrong with the syntax and I wrote it this way: foreach(@allWords) { print OUTPUT "word num $.: $_\n" ; } and yet, same output... why doesnt $. iterate?
|