summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl0/lib/auto/Tk/Widget/ASkludge.al
diff options
context:
space:
mode:
Diffstat (limited to 'Master/tlpkg/tlperl0/lib/auto/Tk/Widget/ASkludge.al')
-rwxr-xr-xMaster/tlpkg/tlperl0/lib/auto/Tk/Widget/ASkludge.al30
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;