Perl API — stat() $ls test.pl test.pl $cat test.pl my $result = stat(‘./test.pl’); print “$result n”; $perl test.pl 1 $ Perl Explanation Returns a 13-element list giving the status info for a file, either the file opened via FILEHANDLE or DIRHANDLE, or named by EXPR. If EXPR is omitted, it stats $_ (not _ !). …