Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Test routines for examining the contents of files

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Test/File/Contents 0.22

This library's module, Test::File::Contents, provides an interface for testing file contents. Usage is quite simple:

file_contents_eq         $file,     $contents,    $description;
file_contents_eq_or_diff $file,     $string,      $description;
file_contents_like       $file,     qr/contents/, $description;
file_md5_sum_is          $file,     $md5hash,     $description;


To install this module, type the following:

perl Build.PL
./Build test
./Build install

Or, if you don't have Module::Build installed, type the following:

perl Makefile.PL
make test
make install


Test::File::Contents requires the following modules:

  • Perl 5.8.3
  • Test::Builder
  • Digset::MD5
  • File::Spec
  • Text::Diff

Copyright and Licence

Copyright (c) 2004-2007 Kirrily Robert. Some Rights Reserved. Copyright (c) 2007-2011 David E. Wheeler. Some Rights Reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Something went wrong with that request. Please try again.