walkingthecow has asked for the wisdom of the Perl Monks concerning the following question:
Here's my code:
And here's my output:my @systems=qw(SERVER1 SERVER2 SERVER3); foreach my $system (@systems) { print "Now powering on $system:"; print colored("\t\t[DONE]\n", 'bold green'); }
I have tried this without using Term::ANSIColor (i.e., no colored(...)), and I still have this strange issue. Anyone know why the heck the "DONEs" would not be lined up? Anyone know a good method for lining them up?Now powering on SERVER1: [DONE] Now powering on SERVER2: [DONE] Now powering on SERVER3: [DONE]
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Question about oddities when printing a tab
by LanX (Saint) on Jan 04, 2013 at 05:53 UTC | |
by walkingthecow (Friar) on Jan 04, 2013 at 06:15 UTC | |
by LanX (Saint) on Jan 04, 2013 at 06:35 UTC | |
by walkingthecow (Friar) on Jan 04, 2013 at 06:39 UTC | |
Re: Question about oddities when printing a tab
by 2teez (Vicar) on Jan 04, 2013 at 06:22 UTC |
Back to
Seekers of Perl Wisdom