Subject: | v1.29 Bareword "Cwd::getcwd" not allowed while "strict subs" in use |
Date: | Tue, 30 Jun 2009 10:45:12 +0100 |
To: | bug-Archive-Zip [...] rt.cpan.org |
From: | Jonathan Michaelson <configserver [...] googlemail.com> |
v1.29 of Archive::Zip breaks the MailScanner application.
Running on perl v5.8.8 on CentOS v5.3:
Bareword "Cwd::getcwd" not allowed while "strict subs" in use at
/usr/lib/perl5/site_perl/5.8.8/Archive/Zip.pm line 552.
Compilation failed in require at /usr/mailscanner/lib/MailScanner/Message.pm
line 48.
BEGIN failed--compilation aborted at
/usr/mailscanner/lib/MailScanner/Message.pm line 48.
Compilation failed in require at /usr/mailscanner/bin/MailScanner line 107.
BEGIN failed--compilation aborted at /usr/mailscanner/bin/MailScanner line
107.
This worked fine in Archive::Zip v1.28 and also works if you add the
following into Zip.pm:
use strict;
no strict 'subs';