for (qw(STORE CLEAR PUSH POP SHIFT UNSHIFT)) { my $s = "SUPER::$_"; no strict 'refs'; *$_ = sub { &main::trigger; shift()->$s(@_) }; }
Update: fixed error (removed the reference from \@_).
In reply to Re^2: Is tie inteded to be used in this way?
by choroba
in thread Is tie inteded to be used in this way?
by Discipulus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |