Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I don't even know if using HTML::Parse is the best way to accomplish this. Does anyone have any other ideas? Any help would be greatly appreciated. ~Jasonuse HTML::Parser; use LWP::Simple; my $html = get "http://192.168.0.3/testing.htm"; HTML::Parser->new(text_h => [\my @accum, "text"])->parse($html); $file = "test.txt"; open(FILE,">>$file") or warn "File $file not found!\n"; print FILE map $_->[0], @accum;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Add line numbers to HTML
by davido (Cardinal) on Mar 20, 2004 at 06:16 UTC | |
by Anonymous Monk on Mar 20, 2004 at 06:38 UTC | |
by davido (Cardinal) on Mar 20, 2004 at 06:44 UTC | |
by Anonymous Monk on Mar 20, 2004 at 06:48 UTC | |
by BUU (Prior) on Mar 20, 2004 at 07:25 UTC | |
by davido (Cardinal) on Mar 20, 2004 at 06:55 UTC | |
|
Re: Add line numbers to HTML
by matija (Priest) on Mar 20, 2004 at 06:08 UTC | |
|
Re: Add line numbers to HTML
by b10m (Vicar) on Mar 20, 2004 at 10:09 UTC |