Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Question about oddities when printing a tab

by 2teez (Priest)
on Jan 04, 2013 at 06:22 UTC ( #1011560=note: print w/ replies, xml ) Need Help??


in reply to Question about oddities when printing a tab

Or you can consider using Perl6::Form instead of format.[a]
This works for me:

use warnings; use strict; use Perl6::Form; my @systems = qw(SERVER1 SERVER2 SERVER3); foreach my $system (@systems) { print form "Now powering on : {|||||} {||||||}", $system, "[DONE]"; }
[a] Though I am with LanX on using printf if your initial script doesn't work like you want. Update

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me


Comment on Re: Question about oddities when printing a tab
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011560]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2014-07-12 22:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (241 votes), past polls