How can i check if a file exists in Perl?

Posted by superstar on Stack Overflow See other posts from Stack Overflow or by superstar
Published on 2010-04-08T15:09:09Z Indexed on 2010/04/08 15:13 UTC
Read the original article Hit count: 231

Filed under:

I am a newbie to perl. My problem is...

I have a relative path

   $base_path = input/myMock.TGZ

The filename can change. But the path is always stored in $base_path.

I need to check if the file exists in $base_path.

Any suggestions are helpful to me

© Stack Overflow or respective owner

Related posts about perl