in reply to problem when using two modules with same subroutine
File::Compare allows you to specifically load cmp() as an alternative to compare(). The easiest way to do it would be to simply specify in the 'use' line:
use File::Compare qw/cmp/;
This has two effects; first, it imports cmp(), and second, since you're specifying an import list and specifically not listing compare(), the latter will not be imported, thus resolving the namespace clash.
Dave
|
|---|