I have a relative path
$base_path = \"input/myMock.TGZ\";
myMock.TGZ is the file name located in input folder. The filenam
myMock.TGZ
Use the below code. Here -f checks, it's a file or not:
print "File $base_path is exists!\n" if -f $base_path;
and enjoy