There's more than one way to do things | |
PerlMonks |
Re: printf x format ?by Fletch (Bishop) |
on Mar 02, 2022 at 05:51 UTC ( [id://11141745]=note: print w/replies, xml ) | Need Help?? |
The string "A" isn't a number so none of the number or character expecting formats will do what you're apparently expecting (when converted to a number the numeric value is zero). Pass a number if you want to format a number (chr and/or ord will probably be of interest).
The cake is a lie.
In Section
Seekers of Perl Wisdom
|
|