in reply to Re: Perl one liner and stat function
in thread Perl one liner and stat function

Thanks for the help ikegami -- for all the variations on the solution. It's amazing how many different ways one can approach this once you have such a great handle on the deep inner workings of the language... not sure how you "PerlMonks" do it.. it's been tough for me.

Replies are listed 'Best First'.
Re^3: Perl one liner and stat function
by Anonymous Monk on Mar 24, 2009 at 02:30 UTC
    By example :) perldoc -f stat
    use File::stat; $sb = stat($filename); printf "File is %s, size is %s, perm %04o, mtime %s\n", $filename, $sb->size, $sb->mode & 07777, scalar localtime $sb->mtime;