Time pass to be honest,may work as a reference later,I am not sure.
use strict;
use warnings;
sub main{
my $file='./a.txt';
if(-f $file)
{
print "$file exists\n";
}
else
print "$file does not exist\n";
main();
No comments:
Post a Comment