comparing the checksums of two files with Perl and cksum

This one-liner helps to determine if two or more files have the same
checksum. It works by piping the output from cksum to Perl, which
takes note of the first checksum and compares each subsequent file's
checksum to that value.

Assume an example session where we have three identical files and two
that are different