in reply to Console Output Formatting Help Required
The disadvantage is that it is a fixed space distance, and rolls around when the terminal window is too narrow...#! /usr/bin/perl -w use strict; use warnings; printf("%-60s", 'this is the first message...'); print STDOUT "done\n"; printf("%-60s", 'this is the second message of different length...'); print STDOUT "done\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Console Output Formatting Help Required
by tarunmudgal4u (Sexton) on Sep 27, 2013 at 07:46 UTC | |
by Anonymous Monk on Sep 27, 2013 at 08:35 UTC | |
by tarunmudgal4u (Sexton) on Sep 29, 2013 at 13:06 UTC | |
by Anonymous Monk on Sep 30, 2013 at 10:40 UTC |