Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Padding with \s

by abitkin (Monk)
on Sep 13, 2002 at 16:27 UTC ( [id://197646]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $var .= substr(" " x 40, length($var)) if length($var) < 40;
    
  2. or download this
    print $var . (length($var)<40?substr(" " x 40, length($var)):"");
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (2)
As of 2024-04-26 06:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found