NAME

cs::Pathname - manipulate data hierachies


SYNOPSIS

use cs::Pathname;


DESCRIPTION

This module does stuff with files and filenames.


FUNCTIONS

pathid(path)

Return a unique id string for the named file. Current implementation: ``rdev:ino''.

compare(file1,file2)

Compare the contents of two files. Returns: undef if one of the files can't be opened or if a read fails. 0 if the files are identical. -1 if the files differ and file1 is a prefix of file2. -2 if the files differ and file1's differing byte is less than file2's byte. 1 if the files differ and file2 is a prefix of file1. 2 if the files differ and file2's differing byte is less than file1's byte.


AUTHOR

Cameron Simpson <cs@zip.com.au>