in reply to Re^2: HTML::Tidy - uses up RAM at crazy rate
in thread HTML::Tidy - uses up RAM at crazy rate
Just a couple other suggestions:
... unless ( @ARGV == 2 and -d $ARGV[0] and -d $ARGV[1] ) { die "Usage: $0 input/path output/path\n" } my ( $indir, $outdir ) = @ARGV my @files = glob "$indir/*.html"; die "No html files found in $indir\n" unless ( @files ); ... for my $file ( @files ) { ... ( my $ofile = $file ) =~ s{$indir}{$outdir}; open OUT, '>', $ofile or die "$!"; ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl tidy - uses up RAM at crazy rate
by Anonymous Monk on Mar 14, 2016 at 04:30 UTC | |
by Anonymous Monk on Mar 14, 2016 at 06:36 UTC | |
by graff (Chancellor) on Mar 16, 2016 at 05:04 UTC | |
by Anonymous Monk on Mar 14, 2016 at 04:34 UTC |