Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^2: Perl one liner and stat function

by csarid (Sexton)
on Mar 24, 2009 at 00:47 UTC ( [id://752759]=note: print w/replies, xml ) Need Help??

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;

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://752759]
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-05-18 22:00 GMT
Find Nodes?
    Voting Booth?

    No recent polls found