Is there a special variable that I can access to get the current loop count within a "foreach" or "while" loop ? For example:
foreach ( @lst ) {
bla bla bla
print "you are on line $#@ \n";
}
Where $#@ is some special variable that is the current loop count.