Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Inheritance confused

by exilepanda (Friar)
on Dec 07, 2015 at 13:02 UTC ( [id://1149575]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package MyTest::Base;
    use strict;
    ...
    }
    
    1;
    
  2. or download this
    package MyTest::Lite;
    no autovivification;
    ...
    }
    
    1;
    
  3. or download this
    use MyTest::Lite;
    use strict;
    ...
    $lite -> chkAccessRight ( "app2" ) ;
    print "======================$/";
    $lite -> tryAccess (  "app1"  );
    
  4. or download this
    Can't call method "SUPER::chkAccessRight" on an undefined value at MyT
    +est/Lite.pm line 19.
    Lite chkAccessRight app2
    ...
    Lite tryAccess app1
    Base tryAccess guest app1
    Lite chkAccessRight guest app1
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1149575]
Approved by Corion
Front-paged by toolic
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-03-29 00:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found