in reply to Re: Is tie inteded to be used in this way?
in thread Is tie inteded to be used in this way?
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 \@_).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Is tie inteded to be used in this way?
by Eily (Monsignor) on Apr 28, 2015 at 14:49 UTC | |
|
Re^3: Is tie inteded to be used in this way?
by Discipulus (Canon) on Apr 28, 2015 at 20:20 UTC | |
by Laurent_R (Canon) on Apr 28, 2015 at 20:54 UTC |