Mail::Box Removing $& performance issue

"Todd Richmond" <[email protected]> Thu, 24 Feb 2005 16:30:28 -0800
Newsgroups gmane.comp.lang.perl.modules.mail-box
Message-ID <02cc01c51ad1$355495b0$0200a8c0@viper>
$& causes global performance issues for any program that includes use of 
that variable, even if the code is never executed.

Mail::Message::Head::Complete.pm uses $& on line 514 and can be changed to

my $sender = $from =~ m/(\<.*?\>)/ ? $1 : 'unknown';

Mail::Message::/TransferEnc::Sevenbit.pm line 37 has another instance, 
though I wasn't able to test a change.

The IMAP Client code has numerous instances, but those are much less 
important

Thanks,
    Todd Richmond