Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Using stat()

by Anonymous Monk
on Nov 25, 2011 at 09:34 UTC ( [id://940004]=note: print w/replies, xml ) Need Help??


in reply to Re: Using stat()
in thread Using stat() to get the total size of files in a folder

If the input location is some other directory (not the current directory) then what to put inside glob ?

Replies are listed 'Best First'.
Re^3: Using stat()
by Anonymous Monk on Nov 25, 2011 at 10:04 UTC
      For Windows it will be glob "C:/" ?
      my $size = 0; for my $filename (glob("C:/")) { next unless -f $filename; $size += -s _; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2024-04-23 20:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found