Syntactic Confectionery Delight | |
PerlMonks |
Re^2: Detecting whether two pathes refer to the same fileby rovf (Priest) |
on Sep 10, 2010 at 10:42 UTC ( [id://859621]=note: print w/replies, xml ) | Need Help?? |
A quick look on CPAN turns up File::Same and File::isFile::Same doesn't check, whether two pathes name the same file, but whether two pathes point to (possibly different) files, having the same content. File::is tries to verify the identity of the files, but only by inode number, which is (as we have learned from ambrus is not even correct on Unix, and does not work at all on Windows :-(
-- Ronald Fischer <ynnor@mm.st>
In Section
Seekers of Perl Wisdom
|
|