Help for this page

Select Code to Download


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