dietbuddha has asked for the wisdom of the Perl Monks concerning the following question:
no strict refs; my $sub = *{Some::Package::function}{CODE}; *Some::Package::function = sub { my $retval = [ $sub->(@_) ]; print "wrappers don't kill, I do"; return $retval; }; use strict refs;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: wrapping 'use'?
by chromatic (Archbishop) on Oct 04, 2006 at 01:00 UTC | |
|
Re: wrapping 'use'?
by ikegami (Patriarch) on Oct 04, 2006 at 04:59 UTC |