diff options
Diffstat (limited to 'Master/tlpkg/tlperl0/lib/auto/Tk/Widget/ASkludge.al')
-rwxr-xr-x | Master/tlpkg/tlperl0/lib/auto/Tk/Widget/ASkludge.al | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Master/tlpkg/tlperl0/lib/auto/Tk/Widget/ASkludge.al b/Master/tlpkg/tlperl0/lib/auto/Tk/Widget/ASkludge.al new file mode 100755 index 00000000000..91c49d8511e --- /dev/null +++ b/Master/tlpkg/tlperl0/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 1508 "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; |