Jeff 'japhy' Pinyan wrote: > > $string =~ s/(.{1,78})\s/$1\n/g; >
I played around with this a bit and came up with something similar: $line=~ s/(.{1,78})(\Z|\s)/$1\n/g; I think $string =~ s/(.{1,78})\s/$1\n/g; assumes that the string ends in whitespace. Tagore Smith -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]