I have a relative path
$base_path = \"input/myMock.TGZ\";
myMock.TGZ is the file name located in input folder. The filenam
myMock.TGZ
if (-e $base_path) { # code }
-e is the 'existence' operator in Perl.
-e
You can check permissions and other attributes using the code on this page.