Help for this page

Select Code to Download


  1. or download this
    sub _my_protected_method { 
        ((caller)[0]->isa(__PACKAGE__)) 
            || die "This method can only be called by a subclass";
        # ... do something 
    }