Help for this page

Select Code to Download


  1. or download this
    The goto-&NAME form is highly magical, and substitutes a call to the n
    +amed subroutine for the currently running subroutine. This is used by
    + AUTOLOAD() subroutines that wish to load another subroutine and then
    + pretend that the other subroutine had been called in the first place
    + (except that any modifications to @_ in the current subroutine are p
    +ropagated to the other subroutine.) After the goto, not even caller()
    + will be able to tell that this routine was called first.
    
  2. or download this
    sub callit
    {
        goto &$p;
    }