in reply to Issue of formatting columns of data
Output (in a UTF-8 terminal):#! /usr/bin/perl use warnings; use strict; use utf8; use open IO => ':encoding(UTF-8)', ':std'; print sprintf ("%-6s", "°C"). "|\n"; print sprintf ("%-6s", "Deg C")."|\n";
°C | Deg C |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Issue of formatting columns of data
by Timka (Acolyte) on Sep 26, 2024 at 03:44 UTC | |
by Tux (Canon) on Sep 26, 2024 at 07:58 UTC |