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.
In reply to Re: HEREDOC weirdness
by AppleFritter
in thread HEREDOC weirdness
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |