Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Write padded output without newline

by RichardK (Parson)
on Mar 06, 2013 at 12:59 UTC ( #1022007=note: print w/replies, xml ) Need Help??


in reply to Write padded output without newline

If printf is being tricky then you could use x instead

print OUTFILE $_,' ' x (200 - length($_));

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1022007]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2017-06-23 09:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (539 votes). Check out past polls.