stat Perl API

Perl API — stat()

my $result = stat('./');
print "$result n";

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 _ !). Returns  the empty list if
stat fails.

computing Theory Drop
stat() is a Unix system call  that returns useful data about a file
inode. The  semantics of stat() vary between  operating systems. As
an example, the Unix command  ls uses it to retrieve information on
(among many others):

source :

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: