Help for this page

Select Code to Download


  1. or download this
    sub foo {
        my $self = shift;
    ...
            $self and ref $self and $self->isa(__PACKAGE__);    
        # actual body of code
    }
    
  2. or download this
    method sub {}              # $SELF=shift, check $SELF & isa
    instance method sub {}     # =method modifier + ref $SELF
    class method sub {}        # =method modifier + !ref $SELF & /\W/ & de
    +fined namespace