Subject: | 2.99_07 triggers problem in Perl 5.6.1 with use strict |
Date: | Wed, 21 Nov 2007 20:19:03 +0100 |
To: | bug-Mail-IMAPClient [...] rt.cpan.org |
From: | Gerald Richter <richter [...] ecos.de> |
Hi,
Mail::IMAPClient 2.99_07
Line 525 and 594 in IMAPClient.pm triggers a problem in perl 5.6.1:
#perl561 -e 'use strict ; my $peek=1 ; print "BODY${peek}[]", "\n"'
Global symbol "@peek" requires explicit package name at -e line 1.
Execution of -e aborted due to compilation errors.
#perl587 -e 'use strict ; my $peek=1 ; print "BODY${peek}[]", "\n"'
BODY1[]
Adding a backslash solves the problem
#perl561 -e 'use strict ; my $peek=1 ; print "BODY${peek}\[]", "\n"'
BODY1[]
#perl587 -e 'use strict ; my $peek=1 ; print "BODY${peek}\[]", "\n"'
BODY1[]
Gerald
** Virus checked by BB-5000 Mailfilter **