Help for this page

Select Code to Download


  1. or download this
    use File::Find;
    my $dir = "/home/lprjob1/filest"
    find( sub { push @files, $File::Find::name if -f && /.+gz/ }, $dir );
    
  2. or download this
    use Tie::Gzip;
     for my $log (@files) {
    ...
       close (LOG);
       untie *LOG;
     }