- or download this
use vars qw/ $REC /;
...
local $REC = $_foo;
$_foo->(@_);
};
- or download this
sub foo {
no warnings 'redefine';
...
return foo(@_);
}
- or download this
use vars qw/ $REC /;
sub foo {
...
return $REC->(@_);
}
- or download this
sub foo {
no warning 'redefine'; # needed if the recursive sub calls any
+ other sub
...
return _(@_);
}