I have a relative path
$base_path = \"input/myMock.TGZ\";
myMock.TGZ is the file name located in input folder. The filenam
myMock.TGZ
#!/usr/bin/perl -w $fileToLocate = '/whatever/path/for/file/you/are/searching/MyFile.txt'; if (-e $fileToLocate) { print "File is present"; }