that's precisely what I was hoping for, the following change makes the original code work.
my @D = map { sprintf($f[$_], $d[$_]) } 0..$#d;
Thank you

In reply to Re^2: Is there an equivalent $. for lists or arrays in map or foreach? by bsdz
in thread Is there an equivalent $. for lists or arrays in map or foreach? by bsdz

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