Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 pondering the Monastery: (8)
As of 2015-03-01 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:









    Results (7 votes), past polls