Subject: | Net::IMAP::Simple::PipeSocket; can be lazy-loaded |
N-I-S v 1.2209
There is no point in loading Net::IMAP::Simple::PipeSocket unless it's going to be used. I doubt that using it is a common case.
at line 10, delete
use Net::IMAP::Simple::PipeSocket;
in new() at line 101
if( $server =~ m/cmd:(.+)/ ) {
$self->{cmd} = $1;
} else {
becomes
if( $server =~ m/cmd:(.+)/ ) {
$self->{cmd} = $1;
require Net::IMAP::Simple::PipeSocket;
} else {