Is there the equivalent of $. ($INPUT_LINE_NUMBER) for lists or arrays that can be used in a map or foreach construct, e.g.
my @f = ('%s', '%.2f', '%u','%d'); my @d = ('my string', '123456.54321' ,'1234.4321' , '1234'); my @D = map { sprintf($f[$LIST_INDEX], $_) } @d; print @D,"\n";
I would like something like $LIST_INDEX to exist. Is there an alternative concise way of doing what I would like to do?

In reply to Is there an equivalent $. for lists or arrays in map or foreach? by bsdz

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":