OlegG has asked for the wisdom of the Perl Monks concerning the following question:
But this doesn't work.package Xxx; sub xxx { my $xxx = eval { die 'xxx' }; } package main; *Xxx::eval = sub(&) { warn "You should die"; $_[0]->(); }; Xxx::xxx();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Any chance to redefine "eval BLOCK" in the package?
by chromatic (Archbishop) on Sep 14, 2011 at 19:56 UTC | |
by OlegG (Monk) on Sep 15, 2011 at 14:20 UTC | |
|
Re: Any chance to redefine "eval BLOCK" in the package?
by ikegami (Patriarch) on Sep 14, 2011 at 18:43 UTC |