Help for this page

Select Code to Download


  1. or download this
    my $type_constraint = Stopwatch->meta->get_attribute('timer')->type_co
    +nstraint;
    print $type_constraint->name; # prints DateTime
    
  2. or download this
    print $type_constraint->parent->name; # prints Object
    print $type_constraint->parent->parent->name; # prints Ref
    print $type_constraint->parent->parent->parent->name; # prints Any
    
  3. or download this
    subtype Protocol
        => as Str
        => where { /^HTTP\/[0-9]\.[0-9]$/ };
    
  4. or download this
    has 'protocol' => (isa => 'Protocol');