Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / perl-5.8.0 / lib / site_perl / 5.8.0 / sun4-solaris / auto / Tk / Widget / ASkludge.al
CommitLineData
86530b38
AT
1# NOTE: Derived from blib/lib/Tk/Widget.pm.
2# Changes made here will be lost when autosplit is run again.
3# See AutoSplit.pm.
4package Tk::Widget;
5
6#line 1224 "blib/lib/Tk/Widget.pm (autosplit into blib/lib/auto/Tk/Widget/ASkludge.al)"
7sub ASkludge
8{
9 my ($hash,$sense) = @_;
10 foreach my $key (%$hash)
11 {
12 if ($key =~ /-.*variable/ && ref($hash->{$key}) eq 'SCALAR')
13 {
14 if ($sense)
15 {
16 my $val = ${$hash->{$key}};
17 require Tie::Scalar;
18 tie ${$hash->{$key}},'Tie::StdScalar';
19 ${$hash->{$key}} = $val;
20 }
21 else
22 {
23 untie ${$hash->{$key}};
24 }
25 }
26 }
27}
28
29# end of Tk::Widget::ASkludge
301;