Compare files, byte-by-byte
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/File
t Use kebab-case in test function names Jun 28, 2015
.gitignore Add .gitignore Nov 14, 2018
.travis.yml Add Travis CI Dec 19, 2015
LICENSE First commit Feb 13, 2013
META6.json Use SPDX identifier in license field of META6.json Apr 26, 2017
README.md Changed max_bytes param to chunk_size Feb 14, 2013

README.md

perl6-File-Compare

Compare files, byte-by-byte

Determines if two files are alike or if they differ.

Usage:

use File::Compare;

say files_are_equal("file1.txt", "file2.txt");
files_are_different("foo", "bar") ?? say "diff" !! say "same";

say "we match" if files_are_equal("x.png", "y.png",
	chunk_size=> 4*1024*1024);

See the pod in Compare.pm for more details.