Compare these examples:
my $mode = (stat($file))[2];
and
use File::stat; my $mode = stat($file)->mode;
Second variant IMHO is much more readable.
In reply to Re: getting file info?
by IlyaM
in thread getting file info?
by nimfa
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |