Thank you both for your help. I've been having problems digesting
perlre so your help is deeply appreciated.
I have a couple of questions if you don't mind helping me
() are used to remember a match right? So why the . after ()?
(.{$maxLength}).
Now, if i wanted to match the first whole word to the left of
$maxLength is this a good way to approach it (ensuring that a word is
not cut off) match a word boundry at the anchor?
$text =~ s/(.{$maxLength}).*?$.\b/$1/$weblink/;
On 20 Apr 2004 07:24:04 -0700,
(Yaroslav)
wrote: