Subject: | Bugfix to a useless warning in message_to_file() in 3.26 |
Date: | Sat, 05 Feb 2011 12:22:40 +0100 |
To: | bug-Mail-IMAPClient [...] rt.cpan.org |
From: | Gilles LAMIRAL <gilles.lamiral [...] laposte.net> |
Hello,
Just a small bugfix for a warning in message_to_file() in 3.26 ligne 788
N-1 warnings "Use of uninitialized value in open at Mail-IMAPClient-3.26/lib/Mail/IMAPClient.pm line 788, <GEN2> line 1."
one per message_to_file() call.
Issue:
else {
open( $fh, ">>", $file );
Fix:
else {
$$file = '' if ( not defined( $$file ) ) ;
open( $fh, ">>", $file );
Maybe it can be fixed elsewhere.
--
Au revoir, 09 51 84 42 42
Gilles Lamiral. France, Baulon (35580) 06 20 79 76 06