On Wed, Mar 08, 2006 at 04:43:02PM -0800, Loren Wilton wrote:
> > my $text = $parts[$pt]->decode();
> > $text =~ tr/ \t\n\r\x0b\xa0/ /s; # whitespace => space
> > push(@{$self->{text_decoded}}, split_into_array_of_short_lines($text));
>
> What does split_into_array_of_short_lines do? This sounds to me like it
> still ends up with individual lines fed to the rules?It takes a line (in this case, the entirety of the decoded mime part) and splits it into smaller lines of max length ~990 chars or so. It's used for the body rules, amongst other places. It's also what takes the decoded scalar and splits on newlines into an array, hence the tr/// in the previous line to get rid of the newlines. -- Randomly Generated Tagline: "I sometimes think that they hire guards based on the bone content in their heads." - Londo on Babylon 5
pgp0xkDzWxqei.pgp
Description: PGP signature
