I have a simple perl script that contains these few lines
The code prints both Filename 1 and 2 which are identical filename (and which definitely exist).
If I use filename 1 in the if statement it returns true - Found
if I use filename 2 then it returns false.
Why?
What am I doing wrong. I am new to perl.
Code:
$Filename = "Z:\\user_CCPROJ_Integration\\SxSupport\\SxRelease\\.\\Product500\\Hooks\\Generic\\ScriptHook\\Release.txt";
$Filename2 = $DestPath . ".\\" . $RelRelease;
print "$Filename\n\n";
print "$Filename2\n\n";
if (-e "$Filename2")
{
print "Found!\n";
The code prints both Filename 1 and 2 which are identical filename (and which definitely exist).
If I use filename 1 in the if statement it returns true - Found
if I use filename 2 then it returns false.
Why?
What am I doing wrong. I am new to perl.