csarid has asked for the wisdom of the Perl Monks concerning the following question:


I am trying to use a perl one-liner to get certain status info on a file.
The command syntax I'm using is the following:
perl -le '$pv=stat(/dir/filename);print "$pv->uid,$pv->gid,$pv->mode;" +'
Would appreciate help on how to correctly write this.