http://www.perlmonks.org?node_id=752734

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

Hello,

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.

Thanks