Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/perl -w
    #<ignore_during_test>
    ...
    sub new { bless {}, $_[0]; }
    sub do_something { 1;}
    sub do_something_else { 2;}
    
  2. or download this
    use strict; use warnings;
    use Test::More tests => 2;
    ...
    can_ok($obj, 'do_something_else');
    is($obj->do_something_else, 2);
    # etc.