Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Write padded output without newline

by RichardK (Vicar)
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($_));


Comment on Re: Write padded output without newline
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2015-07-07 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (88 votes), past polls