I'm having trouble retrieving the contents of a Storable file after (I assume) my hosts have upgraded Perl. The error message I get is:
But it still bombs out with this message:
Any ideas?
-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
Some googling suggests that this can be fixed by setting [tt]$Storable::interwork_56_64bit[/tt], but this doesn't seem to be helping. Here's what I tried:Byte order is not compatible at blib/lib/Storable.pm (autosplit into blib/lib/auto/Storable/_retrieve.al) line 380
Code:
#!/usr/bin/perl
use CGI;
use CGI::Carp qw(fatalsToBrowser);
use Storable;
BEGIN {
$Storable::interwork_56_64bit = 1;
}
use Data::Dumper;
print "Content-type: text/plain\n\n";
my $books = retrieve ("/home/napitali/secure/libris/data/books.dat");
print Dumper ($books);
I get that regardless of the value of [tt]$Storable::interwork_56_64bit[/tt].Byte order is not compatible at blib/lib/Storable.pm (autosplit into blib/lib/auto/Storable/_retrieve.al) line 380, at migrate.pl line 13
Any ideas?
-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd