Help for this page

Select Code to Download


  1. or download this
    perl -le '$size += (-f $_ ? -s _ : 0) for (<*>); print $size'
    
  2. or download this
    my $size = 0;
    for my $filename (glob("*")) {
        next unless -f $filename;
        $size += -s _;
    }