Help for this page

Select Code to Download


  1. or download this
       use feature qw( state );
       use Type::Params qw( compile );
    ...
          
          return $x + $y;
       }
    
  2. or download this
       use feature qw( state );
       use Type::Params qw( compile_named_oo );
    ...
          
          return $arg->x + $arg->y;
       }
    
  3. or download this
       use feature qw( state );
       use Type::Params qw( signature );
    ...
          
          return $x + $y;
       }
    
  4. or download this
       use feature qw( state );
       use Type::Params qw( signature );
    ...
          
          return $arg->x + $arg->y;
       }
    
  5. or download this
       use experimental qw( signatures );
       use Type::Params qw( signature_for );
    ...
       sub add_numbers ( $self, $arg ) {
          return $arg->x + $arg->y;
       }
    
  6. or download this
       use Type::Tiny::Enum Size => [ qw( S M L XL ) ];
    
  7. or download this
       package Local::TShirt {
          use Moose;
    ...
             }
          }
       }
    
  8. or download this
       sub post_data ( $url, $data, $ua=undef ) {
          
    ...
          $ua = HTTPTiny->new unless is_HTTPTiny $ua;
          $ua->post( $url, $data );
       }
    
  9. or download this
       use Types::Common -all;
    
  10. or download this
       use Types::Common qw( signature_for Num NonEmptyStr );
    </pre>
    ...
    
    <c>
       use Types::Common -lexical, -all;
    
  11. or download this
       has lucky_numbers => (
          is    => 'ro',
          isa   => ArrayRef[ Num / Any ],
       );
    
  12. or download this
       has output_list => (
          is        => 'ro',
          isa       => ArrayRef,
          default   => sub { [] },
       );
    
  13. or download this
       has output_list => (
          is        => 'ro',
          isa       => ArrayRef,
          default   => ArrayRef->type_default,
       );
    
  14. or download this
       has colour_scheme => (
          is        => 'ro',
    ...
             return \%colours;
          },
       );