logo       

format a variables value for print: msg#00366

perl-beginners

Subject: format a variables value for print

I'm a little lost even what to look for to do this.

With a variable like this:

$var = 'American Express offers individuals online access to its world-class
Card, Financial, and Travel services, including financial advice, retirement
planning, air and hotel reservations and more'

I never know how many words will be in the content.

What can I do to format the output info something like 70 characters
per line (not splitting any words) and each line to begin with 4
spaces.


--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail: beginners-help@xxxxxxxx
http://learn.perl.org/


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise