Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: A Procrustean Statement

by ikegami (Patriarch)
on Jun 16, 2006 at 05:01 UTC ( [id://555690]=note: print w/replies, xml ) Need Help??


in reply to A Procrustean Statement

The following will pad but not truncate:
$_ = sprintf '%-*s', $len, $_;

Replies are listed 'Best First'.
Re^2: A Procrustean Statement
by YuckFoo (Abbot) on Jun 16, 2006 at 17:21 UTC
    Pad and truncate:
    $_ = sprintf '%-*.*s', $len, $len, $_;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2024-04-24 23:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found