Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Using stat()

by Anonymous Monk
on Nov 25, 2011 at 10:04 UTC ( #940013=note: print w/replies, xml ) Need Help??


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

Re: extended path search module,
print "$_\n" for glob "*/*bo"; print "$_\n" for glob "/ro/sham/*/*bo";

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2022-05-23 11:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (82 votes). Check out past polls.

    Notices?