On Mon, Sep 18, 2006 at 08:28:33AM -0700, Palit, Nilanjan wrote:
> That works too (& I have used it as well), but I guess what I'm really
> asking (hoping?) for is a Perl special variable, kinda like "$.",
> which Perl auto-magically initializes & increments ...

I doubt it does - considering that foreach doesn't work on arrays, but
on lists.  So all such a magic variable can tell you is how many
iterations the loop has ran so far, which is the same as the two lines
of code in the earlier post.

Dan

-- 
Dan Boger
[EMAIL PROTECTED]
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to