home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2004 July / APC0407D2.iso / workshop / apache / files / ActivePerl-5.6.1.638-MSWin32-x86.msi / _d6ca53f147045e17ccf1f8f79a020539 < prev    next >
Encoding:
Text File  |  2004-04-13  |  726 b   |  24 lines

  1. # NOTE: Derived from blib\lib\Storable.pm.
  2. # Changes made here will be lost when autosplit is run again.
  3. # See AutoSplit.pm.
  4. package Storable;
  5.  
  6. #line 255 "blib\lib\Storable.pm (autosplit into blib\lib\auto\Storable\_freeze.al)"
  7. # Internal freeze routine
  8. sub _freeze {
  9.     my $xsptr = shift;
  10.     my $self = shift;
  11.     logcroak "not a reference" unless ref($self);
  12.     logcroak "too many arguments" unless @_ == 0;    # No @foo in arglist
  13.     my $da = $@;                # Don't mess if called from exception handler
  14.     my $ret;
  15.     # Call C routine mstore or net_mstore, depending on network order
  16.     eval { $ret = &$xsptr($self) };
  17.     logcroak $@ if $@ =~ s/\.?\n$/,/;
  18.     $@ = $da;
  19.     return $ret ? $ret : undef;
  20. }
  21.  
  22. # end of Storable::_freeze
  23. 1;
  24.