Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Byte order is not compatible

Status
Not open for further replies.

ChrisHunt

Programmer
Jul 12, 2002
4,056
GB
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:
Byte order is not compatible at blib/lib/Storable.pm (autosplit into blib/lib/auto/Storable/_retrieve.al) line 380
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:
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);
But it still bombs out with this message:
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
I get that regardless of the value of [tt]$Storable::interwork_56_64bit[/tt].

Any ideas?

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top