Help for this page

Select Code to Download


  1. or download this
    sub sub2 {
      my ($self) = @_;
      $self->_sub1;
    }
    
  2. or download this
    # Use goto because that automatically passes on @_ to the
    # next function.
    sub sub2 {
        goto \&_sub1;
    }
    
  3. or download this
    # Just make one sub into an alias for the other...
    *sub2 = \&_sub1;