Help for this page

Select Code to Download


  1. or download this
    dir.txt = [ dir1.txt, dir2.txt, dir3.txt]
    
    use Win32::DirSize;
    open (FILE, "dir.txt") || die "can not open file\n";
    
  2. or download this
    use strict;
    use warnings;
    
  3. or download this
    #!Perl -l
    
    ...
    chomp, print dir_size $_ while <$fh>;
    
    __END__
    
  4. or download this
    #!Perl -lp
    
    ...
    $_=dir_size $_;
    
    __END__
    
  5. or download this
    dir1.txt, dir2.txt, dir3.txt
    
  6. or download this
    print dir_size $_ for split /, /;