Re: Uninitialized value warning when deleting POP3 message

"David Phillips" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.mail-box
Message-ID <002c01c3e421$518e9ba0$2100a8c0@tweezerman>
> >      #!/usr/bin/perl -X
> > ...at the top of my script, but this seems like overkill to me.
> 
> You could also encapsulate a small piece of the affected code with
>   { no warnings;
>   }
> -- 

I tried encapsulating "$message->delete;" in a block with "no warnings;", but the warning is still generated.  It appears that "use warnings;" at the top Mail/Box/POP3/Message.pm will override any "no warnings;" block in my script.

> > If this is a problem with the Mail::Box::POP3 code, could code in 
> > my own script delete the messages safely without totally confusing 
> > Mail::Box?

Is this a workable and safe option?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.