go ahead... be a heretic | |
PerlMonks |
Re: Is it a list or a flip-flop?by Paladin (Vicar) |
on Aug 18, 2005 at 19:09 UTC ( [id://484936]=note: print w/replies, xml ) | Need Help?? |
You are using the .. operator in scalar context. When you do this, and have a number at one end, it compares that number to $. (the current line of the selected file handle, usually used in a while (<FH>) {} loop. Since you aren't reading a file, $. is uninitialized at this point.
In Section
Seekers of Perl Wisdom
|
|