in reply to HEREDOC weirdness

You're using printf, not print, so your heredoc actually specifies a format string. Is that on purpose?

Note that %U is one of the formats recognized by printf, BTW, as is %X; OTOH, %S and %A aren't, so they're printed unmodified.

Replies are listed 'Best First'.
Re^2: HEREDOC weirdness
by Anonymous Monk on Sep 03, 2014 at 21:30 UTC

    No, it was not, and that appears to be the answer.

    Thanks so much!!

      You're welcome! *tips hat*

      BTW, allow me to also suggest that you make it a habit to use warnings - this would've provided a valuable clue here:

      Missing argument in printf at 1099478.pl line 7. Missing argument in printf at 1099478.pl line 7. Invalid conversion in printf: "%S" at 1099478.pl line 7. Missing argument in printf at 1099478.pl line 7. Invalid conversion in printf: "%A" at 1099478.pl line 7.
        ... use warnings ... would've provided a valuable clue ...

        Indeed, five valuable clues!