You know those TV specials of some war-torn area that make you happy for your tiny little 1br studio? Well, maybe one look at this code will make you happy with whatever Perl challenges you have to deal with:
Logging::logDebugMessage( $moduleArea,
$feedName,
$routineName,
$moduleAreaCode,
"Entering $routineName.",
$Logging::PRIORITY_DIAGNOSTIC );
# check if the directories are equal
chdir( $fromDir );
@fromDir = `pwd`;
chdir( $toDir );
@toDir = `pwd`;
if ( @fromDir eq @toDir )
{
Logging::logErrorMessage( $moduleArea,
$feedName,
$routineName,
$errorString . "00",
"FromDir is the same as ToDir. Unable to copy data
+files." ,
$Logging::PRIORITY_CRITICAL );