Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1011560]
help
Chatterbox?
[virtualsue]: likely to be grey here all day judging by the forecast
[1nickt]: The deer are in the back garden looking for corn left over from yesterday; the birds are not yet making a commotion. There is frost on the ground.
[1nickt]: virtualsue how's the retatching going?
[1nickt]: rethatching

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (10)
As of 2017-11-21 11:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (297 votes). Check out past polls.

    Notices?