Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 1775
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: Nobody in particular
Requestors: kli268 [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.32
Fixed in: (no value)



Subject: our $VERSION="0.32" in Mechanize.pm causes build problem on FreeBSD 4.5 (perl 5.0005.3)
Using Perl 5.005.3, I got the following on FreeBSD 4.5 goldenhorse# perl Makefile.PL Could not eval ' package ExtUtils::MakeMaker::_version; no strict; local $VERSION; $VERSION=undef; do { our $VERSION = "0.32"; }; $VERSION ' in lib/WWW/Mechanize.pm: Can't modify subroutine entry in scalar assignment at (eval 14) line 7, at EOF # Looks like your test died before it could output anything. =========End of Error Messages============= It looks like the 'our $VERSION = "0.32";' caused the problem. I removed the "our" and "perl Makefile.PL" works. Thanks, Kenny goldenhorse# perl -v This is perl, version 5.005_03 built for i386-freebsd Copyright 1987-1999, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5.0 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. goldenhorse# uname -a FreeBSD goldenhorse.eng.gs-gs.com 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Sat Mar 23 11:10:55 MST 2002 root@goldenhorse.eng.gs-gs.com:/usr/obj/usr/src/sys/ERIC i386
This is because the C<our> construct is a Perl 5.6 thing, and WWW::Mechanize requires Perl 5.6.