Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Generating standard length strings

by ihb (Deacon)
on Apr 15, 2005 at 02:37 UTC ( [id://448054]=note: print w/replies, xml ) Need Help??


in reply to Re: Generating standard length strings
in thread Generating standard length strings

sprintf '%-*s', $length, $string

Less noise in the format.

ihb

See perltoc if you don't know which perldoc to read!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (1)
As of 2024-04-25 03:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found