We don't bite newbies here... much | |
PerlMonks |
Re^7: Keeping a Count in foreachby metadoktor (Hermit) |
on Jun 21, 2004 at 21:46 UTC ( [id://368558]=note: print w/replies, xml ) | Need Help?? |
Your use of ($. || 1 .. undef) -1totally baffles me. This must be an obscure effect. I read this as a scalar use of the range operator with start and stop conditions but you say that it's in list context instead.
I can reduce this to:
((undef or 1) .. undef) - 1but no more. Can you shed more light on what anonymous variable is keeping count? metadoktor "The doktor is in."
In Section
Seekers of Perl Wisdom
|
|