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");