sheridan3003 has asked for the wisdom of the Perl Monks concerning the following question:
I would like to improve my coding abilities and seek the wisdom of others to guide me. Thanks.#!/usr/bin/perl -w use HTML::Clean; my @file_list = `ls *.html`; foreach(@file_list) { chomp(); clean_file($_); } sub clean_file { my ($filename) = shift; print "$filename is being cleaned!\n"; my $h = new HTML::Clean($filename,9); $h->compat(); $h->strip(); my $myref = $h->data(); open(OUTPUT,">$filename"); print OUTPUT $$myref; close(OUTPUT); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Improvement suggestions?
by Masem (Monsignor) on Oct 14, 2001 at 02:36 UTC | |
by sheridan3003 (Beadle) on Oct 14, 2001 at 02:53 UTC | |
|
Re: Improvement suggestions?
by wog (Curate) on Oct 14, 2001 at 02:45 UTC | |
|
Re: Improvement suggestions?
by dragonchild (Archbishop) on Oct 15, 2001 at 17:39 UTC |