Solved

$input longer than one line

Posted on 1998-07-15
3
136 Views
Last Modified: 2010-03-05
I have a form field whos input could be up to 100 words - (on-line application - asks user to describe current responsibilities - input is e-mailed to our recruiter) Currently, the input is running off the page - how can i correct (sorry for the ignorance!)... k
0
Comment
Question by:kerrie
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
mikegrb earned 70 total points
Comment Utility
There is a Text::Wrap Module you can use as follows:

use Text::Wrap;
$Text::Wrap::colums = 70;
$wrapped = wrap('','',$vartowrap);
the first to parameters are appended to the first line and subseqent lines
respectivley.

This Modules is documented on page 512 of the Camel book aka "Programming Perl"
published by O'Rielly and Associates
0
 

Author Comment

by:kerrie
Comment Utility
thanks very much for such a quick response... k
0
 
LVL 1

Expert Comment

by:mikegrb
Comment Utility
no problem
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
Many time we need to work with multiple files all together. If its windows system then we can use some GUI based editor to accomplish our task. But what if you are on putty or have only CLI(Command Line Interface) as an option to  edit your files. I…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now