Help for this page

Select Code to Download


  1. or download this
    sub get_3d_xyz { 
        $self = shift;
    ...
    
        return @xyz;
    }
    
  2. or download this
    sub get_3d_xyz { 
        $self = shift;
        return ( $self->get_x(), $self->get_y(), $self->get_z() );
    }
    
  3. or download this
    use constant SELF => 0;
    sub get_3d_xyz { 
    ...
        , $_[SELF]->get_y()
        , $_[SELF]->get_z() ); 
    }