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

Re: Re: add a line based on maxline length

by redsquirrel (Hermit)
on Jul 31, 2002 at 20:00 UTC ( [id://186581]=note: print w/replies, xml ) Need Help??


in reply to Re: add a line based on maxline length
in thread add a line based on maxline length

Surely a Perl script of that brevity can be reduced to a one-liner:

perl -lpe '$p = length if $p < length; END {print "X" x $p}'

--Dave

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://186581]
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: (3)
As of 2024-03-29 07:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found