Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Answer: How do you limit textarea of a form

by reptile (Monk)
on May 25, 2000 at 00:15 UTC ( #14660=categorized answer: print w/replies, xml ) Need Help??

Q&A > input and output > How do you limit textarea of a form - Answer contributed by reptile

A possible perl solution is removing some of the newlines, like:

s/\n{3,}/\n\n/g;

which will replace three or more newlines in a row with two (two to preserve double-spacing of paragraphs).

Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2017-11-22 09:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (316 votes). Check out past polls.

    Notices?