Or something like that. You'll have to work out the details.package mything; # do not variables (scalars, arrays, and hashes) . . . my $someVar = 'XYZ'; # define lvalue subs to "trap" access to vars sub someVar : lvalue { print "Ooo! I trapped you!\n"; return $someVar; } . . . 1;
In reply to Re: Trapping acces to variables in-code
by Anonymous Monk
in thread Trapping acces to variables in-code
by gkelly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |