jmClifford has asked for the wisdom of the Perl Monks concerning the following question:
Hi. I have the following code (and output);
print sprintf ("%-6s", "°C"). "|\n"; print sprintf ("%-6s", "Deg C")."|\n"; --------------------------------------- Output; °C | Deg C |
It appears the 2 bytes involved with the ° character is comprehended as 2 spaces and so my vertical bars do not align. Is there a way around this issue (without just avoiding such characters) ??
Regards JC......
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Issue of formatting columns of data
by choroba (Cardinal) on Sep 25, 2024 at 15:49 UTC | |
by Timka (Acolyte) on Sep 26, 2024 at 03:44 UTC | |
by Tux (Canon) on Sep 26, 2024 at 07:58 UTC |