sejtam has asked for the wisdom of the Perl Monks concerning the following question:
should come out asformat TOP = @||||||||||||||||||| @||||||||||||||||| @||||||||| $c1, $c2, $c3 . $c1 = "first column"; $c2 = " this month"; $c3 = " other data"; write;
or (if spaces in the string could also be replaced:____first column____ ____this month____ other data
The idea is that the underscores make it easier to see later how long a field Is this possible? Is there maybe an internal variable containing te character used for padding when '|' us used in a format description?____first_column____ ____this_month____ other_data
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: format: pad values/strings with '_'
by ikegami (Patriarch) on Jul 24, 2023 at 14:24 UTC |