diff options
Diffstat (limited to 'Master/tlpkg/tlperl.straw/lib/auto/Storable/thaw.al')
-rwxr-xr-x | Master/tlpkg/tlperl.straw/lib/auto/Storable/thaw.al | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Master/tlpkg/tlperl.straw/lib/auto/Storable/thaw.al b/Master/tlpkg/tlperl.straw/lib/auto/Storable/thaw.al new file mode 100755 index 00000000000..5349dfcc054 --- /dev/null +++ b/Master/tlpkg/tlperl.straw/lib/auto/Storable/thaw.al @@ -0,0 +1,28 @@ +# NOTE: Derived from blib\lib\Storable.pm. +# Changes made here will be lost when autosplit is run again. +# See AutoSplit.pm. +package Storable; + +#line 404 "blib\lib\Storable.pm (autosplit into blib\lib\auto\Storable\thaw.al)" +# +# thaw +# +# Recreate objects in memory from an existing frozen image created +# by freeze. If the frozen image passed is undef, return undef. +# +sub thaw { + my ($frozen) = @_; + return undef unless defined $frozen; + my $self; + my $da = $@; # Could be from exception handler + eval { $self = mretrieve($frozen) }; # Call C routine + logcroak $@ if $@ =~ s/\.?\n$/,/; + $@ = $da; + return $self; +} + +1; +__END__ + +1; +# end of Storable::thaw |