How to know if a file exists using PERL
Carlos Alberto

Carlos Alberto @charlygarcia120

About: programming the world

Location:
Bogota
Joined:
Apr 26, 2020

How to know if a file exists using PERL

Publish Date: Oct 12 '22
0 0

The follow code shows if a file exists using PERL lenguaje


$filename="FILEX.TXT";
if (-e $filename) {
   print "File Exists!";
} 
else
{
   print "don't exists";
}
Enter fullscreen mode Exit fullscreen mode

Comments 0 total

    Add comment