Thanks -- that helped:
$ locate /Storable.pm | xargs grep -w VERSION
/usr/lib/perl5/core_perl/Storable.pm:use vars qw($canonical $forgive_m
+e $VERSION);
/usr/lib/perl5/core_perl/Storable.pm:$VERSION = '2.34';
/usr/lib/perl5/core_perl/Storable.pm:XSLoader::load('Storable', $Stora
+ble::VERSION);
/usr/lib/perl5/site_perl/Storable.pm:use vars qw($canonical $forgive_m
+e $VERSION);
/usr/lib/perl5/site_perl/Storable.pm:$VERSION = '2.30';
/usr/lib/perl5/site_perl/Storable.pm:XSLoader::load 'Storable', $Stora
+ble::VERSION;
So I renamed the site_perl version, and now my script runs.
There are still other problems with site_perl though -- probably because in the past I've used cpanp to install modules. Now I can't re-run cpanp to update things because cpanp itself doesn't run:
$ cpanp
Attempt to reload Module/Load/Conditional.pm aborted.
Compilation failed in require at /usr/share/perl5/site_perl/IPC/Cmd.pm
+ line 50.
BEGIN failed--compilation aborted at /usr/share/perl5/site_perl/IPC/Cm
+d.pm line 50.
Compilation failed in require at /usr/share/perl5/site_perl/CPANPLUS/C
+onfig.pm line 18.
BEGIN failed--compilation aborted at /usr/share/perl5/site_perl/CPANPL
+US/Config.pm line 18.
Compilation failed in require at /usr/share/perl5/site_perl/CPANPLUS/C
+onfigure.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/site_perl/CPANPL
+US/Configure.pm line 7.
Compilation failed in require at /usr/share/perl5/site_perl/CPANPLUS/B
+ackend.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/site_perl/CPANPL
+US/Backend.pm line 7.
Compilation failed in require at /usr/share/perl5/site_perl/CPANPLUS.p
+m line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/site_perl/CPANPL
+US.pm line 7.
Compilation failed in require at /usr/bin/site_perl/cpanp line 11.
BEGIN failed--compilation aborted at /usr/bin/site_perl/cpanp line 11.
There's lots of stuff in /usr/share/perl5/site_perl -- I'll try getting rid of all of it temporarily to see what else breaks...
cheers, Chris
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|