>I figure that I can use substr() to cut up a string, but how do I make it
>between words?

you can split the string on whitespace, for one.

my @array = split /\s+/, $string;

>How do I measure a string to see if it is greater than 85 characters?

my $string_len = length($string);

>Basically, if the string is more than 85 characters, how do I break it at
>the last full word?

if ( (length $string) > 85 ) {
     my @split = split /\b\w+$/, $string;
}

or something like that...it depends on what you want to do once you break the 
string...

on behalf of all turbo-newbies,

nathanael

"I think for my lunch tomorrow I'll make a tuna and pickle triangle bunwich."


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to