in reply to Access to tied variable in the tie constructor???
package TestTie;
sub TIESCALAR{
my ($pkg, $object) = @_;
my $obj=[] ;
bless $obj, $package;
print "$$object\n";
return $obj;
}
package main;
my $t=9;
tie $t, 'TestTie', \$t;
hth,
g
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Access to tied variable in the tie constructor???
by lhoward (Vicar) on May 27, 2000 at 16:07 UTC |