Storable

 view release on metacpan or  search on metacpan

t/make_56_interwork.pl  view on Meta::CPAN

21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
if ($Config{byteorder} eq $storebyteorder) {
  my $ivtype = $Config{ivtype} || 'long';
  print <<"EOM";
You only need to run this generator program where Config.pm's byteorder string
is not the same length as the size of IVs.
 
This length difference should only happen on perl 5.6.x configured with IVs as
long long on Unix, OS/2 or any platform that runs the Configure stript (ie not
MS Windows)
 
This is perl $], sizeof(long) is $Config{longsize}, IVs are '$ivtype', sizeof(IV) is $ivsize,
byteorder is '$Config{byteorder}', Storable $Storable::VERSION writes a byteorder of '$storebyteorder'
EOM
  exit; # Grr '
}
 
my ($i, $l, $p, $n) = unpack "xxxx${storesize}CCCC", $frozen;
 
print <<"EOM";
# byteorder      '$storebyteorder'
# sizeof(int)    $i



( run in 1.088 second using v1.01-cache-2.11-cpan-49f99fa48dc )