in reply to Keeping a Count in foreach
RFC 120: Implicit counter in for statements, possibly $#.
The proposal was rejected in Apocalypse 4 but I wouldn't say that I was disappointed. :-)
-- John.