diff options
author | Karl Berry <karl@freefriends.org> | 2012-05-21 00:15:27 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2012-05-21 00:15:27 +0000 |
commit | a4c42bfb2337d37da89d789cb8cc226367994e32 (patch) | |
tree | c3eabdef5d565a4e515d2be0d9d4d0540bde0250 /Master/tlpkg/tlperl/lib/Tie/Hash/NamedCapture.pm | |
parent | 8274475057f024d35332ac47c2e2f23ea156e6ed (diff) |
perl 5.14.2 from siep
git-svn-id: svn://tug.org/texlive/trunk@26525 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/tlpkg/tlperl/lib/Tie/Hash/NamedCapture.pm')
-rw-r--r-- | Master/tlpkg/tlperl/lib/Tie/Hash/NamedCapture.pm | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/Master/tlpkg/tlperl/lib/Tie/Hash/NamedCapture.pm b/Master/tlpkg/tlperl/lib/Tie/Hash/NamedCapture.pm index 58ae743d874..932e4404d17 100644 --- a/Master/tlpkg/tlperl/lib/Tie/Hash/NamedCapture.pm +++ b/Master/tlpkg/tlperl/lib/Tie/Hash/NamedCapture.pm @@ -1,23 +1,10 @@ +use strict; package Tie::Hash::NamedCapture; -our $VERSION = "0.06"; +our $VERSION = "0.08"; -# The real meat implemented in XS in universal.c in the core, but this -# method was left behind because gv.c expects a Purl-Perl method in -# this package when it loads the tie magic for %+ and %- - -my ($one, $all) = Tie::Hash::NamedCapture::flags(); - -sub TIEHASH { - my ($pkg, %arg) = @_; - my $flag = $arg{all} ? $all : $one; - bless \$flag => $pkg; -} - -tie %+, __PACKAGE__; -tie %-, __PACKAGE__, all => 1; - -1; +require XSLoader; +XSLoader::load(); # This returns true, which makes require happy. __END__ |