diff options
author | Staszek Wawrykiewicz <staw@gust.org.pl> | 2006-12-18 03:24:34 +0000 |
---|---|---|
committer | Staszek Wawrykiewicz <staw@gust.org.pl> | 2006-12-18 03:24:34 +0000 |
commit | fbf4a6e8014789c67a381e0b4f05de5bdadbce24 (patch) | |
tree | 20cc48dd29799a673fe0a628e825114d823493b1 /Master/perltl/site/lib/auto/Tk/Widget/ASkludge.al | |
parent | 34c11d2616bb32772199abf210ae88d99665a824 (diff) |
perltl added
git-svn-id: svn://tug.org/texlive/trunk@2778 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/perltl/site/lib/auto/Tk/Widget/ASkludge.al')
-rw-r--r-- | Master/perltl/site/lib/auto/Tk/Widget/ASkludge.al | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Master/perltl/site/lib/auto/Tk/Widget/ASkludge.al b/Master/perltl/site/lib/auto/Tk/Widget/ASkludge.al new file mode 100644 index 00000000000..fe9b23df886 --- /dev/null +++ b/Master/perltl/site/lib/auto/Tk/Widget/ASkludge.al @@ -0,0 +1,30 @@ +# NOTE: Derived from blib\lib\Tk/Widget.pm. +# Changes made here will be lost when autosplit is run again. +# See AutoSplit.pm. +package Tk::Widget; + +#line 1224 "blib\lib\Tk/Widget.pm (autosplit into blib\lib\auto\Tk\Widget\ASkludge.al)" +sub ASkludge +{ + my ($hash,$sense) = @_; + foreach my $key (%$hash) + { + if ($key =~ /-.*variable/ && ref($hash->{$key}) eq 'SCALAR') + { + if ($sense) + { + my $val = ${$hash->{$key}}; + require Tie::Scalar; + tie ${$hash->{$key}},'Tie::StdScalar'; + ${$hash->{$key}} = $val; + } + else + { + untie ${$hash->{$key}}; + } + } + } +} + +# end of Tk::Widget::ASkludge +1; |