Jasper has asked for the wisdom of the Perl Monks concerning the following question:
sub Foo::new { require MockFoo; return MockFoo->new(); } # blah blah blah - tests in here eval `cat Foo.pm`; # borrowed from 'Programming Perl' # to reestablish the original meaning
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: locally redefining subroutine in module
by Corion (Patriarch) on Jun 30, 2004 at 10:09 UTC | |
by Jasper (Chaplain) on Jun 30, 2004 at 10:16 UTC | |
|
Re: locally redefining subroutine in module
by adrianh (Chancellor) on Jun 30, 2004 at 10:19 UTC | |
by Jasper (Chaplain) on Jun 30, 2004 at 10:49 UTC |