Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Using stat()

by samtregar (Abbot)
on May 24, 2002 at 04:51 UTC ( #168976=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use File::Find;           
    my $size = 0;             
    find(sub { $size += -s if -f $_ }, "foo");
    
  2. or download this
    use File::Find;           
    my $size = 0;             
    find(sub { $size += -s if $File::Find::name eq "foo/$_" and -f $_}, "f
    +oo");
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2022-05-24 19:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (84 votes). Check out past polls.

    Notices?