Help for this page

Select Code to Download


  1. or download this
      use Test::More tests => 3;
                                                                          
    +                                                                     
    +                 
      use_ok('CGI') or die;
      can_ok('CGI', 'start_html');
      ok(CGI->start_html, '... and calling it should succeed');
    
  2. or download this
      package Foo;
      use stub qw'this that';
    
      sub AUTOLOAD {...} # required
    
  3. or download this
      sub _delegate {
          # this is not a complete method.  It's just here for illustratio
    +n
          my ($self, $slot, $object) {
    ...
          die "Interface required @missing" if @missing;
          return $self;
      }
    
  4. or download this
      package stub;
                                                                          
    +                                                                     
    +                 
      sub import {
    ...
      }
                                                                          
    +                                                                     
    +                 
      1;