http://qs1969.pair.com?node_id=940013


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.