diff options
author | Siep Kroonenberg <siepo@cybercomm.nl> | 2011-02-17 15:54:37 +0000 |
---|---|---|
committer | Siep Kroonenberg <siepo@cybercomm.nl> | 2011-02-17 15:54:37 +0000 |
commit | 9d55a4cf517a832c74e85179eac4239f9be8d2e7 (patch) | |
tree | 822f43e201b5fe5f20d07c831a0042b7280f85c5 /Master/tlpkg/tlperl/lib/auto/Storable/thaw.al | |
parent | 2acf4c9396e980e00adbdc02f5a70eefc7122b55 (diff) |
New tlperl part VII
git-svn-id: svn://tug.org/texlive/trunk@21429 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/tlperl/lib/auto/Storable/thaw.al')
-rw-r--r-- | Master/tlpkg/tlperl/lib/auto/Storable/thaw.al | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Master/tlpkg/tlperl/lib/auto/Storable/thaw.al b/Master/tlpkg/tlperl/lib/auto/Storable/thaw.al new file mode 100644 index 00000000000..495a71769eb --- /dev/null +++ b/Master/tlpkg/tlperl/lib/auto/Storable/thaw.al @@ -0,0 +1,28 @@ +# NOTE: Derived from ..\..\lib\Storable.pm. +# Changes made here will be lost when autosplit is run again. +# See AutoSplit.pm. +package Storable; + +#line 404 "..\..\lib\Storable.pm (autosplit into ..\..\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 |