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
In reply to RE: Access to tied variable in the tie constructor???
by Anonymous Monk
in thread Access to tied variable in the tie constructor???
by lhoward
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |