Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Moose "unions" and inheritance

by tobyink (Abbot)
on Nov 30, 2012 at 12:06 UTC ( #1006465=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # It's actually a lot more complex than this, but just
    # pretend it's this simple...
    ...
    sub HashRef () {   ### empty prototype
      return Moose::Meta::TypeConstraint->lookup('HashRef');
    }
    
  2. or download this
        isa => HashRef
    
  3. or download this
    package A;
    has data => (is => 'ro');
    package B;
    has data => (is => 'rw');
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006465]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2014-12-25 12:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls