in reply to Trapping acces to variables in-code
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;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Trapping acces to variables in-code
by ikegami (Patriarch) on Oct 13, 2004 at 17:57 UTC |