Help for this page

Select Code to Download


  1. or download this
     
    use Test::More;  # you may need to install it 
    
    ...
    ok( !@test_these , 'no more @test_these!' ); 
    
    1;
    
  2. or download this
     
    
    sub get_file_contents { 
    ...
      
    }
    
  3. or download this
     
    use Test::More tests => 3; 
    use My::Module; 
    ...
    ok( $content =~ /string/ , "\$content contains string!" ); 
    
    1;
    
  4. or download this
     
    
    sub get_file_contents { 
    ...
        return wantarray ? ($contents,$file) : $contents; 
      
    }
    
  5. or download this
     
    
    use Test::More tests => 13; 
    ...
    
    1;