Already dropped my question on a few Perl forums, and I've been detached from my regular Perl master for a few days. If you know your shit and have a moment I'd like to run a question passed you.
!/usr/bin/perl
use strict;
use warnings;
use HTML::TokeParser;
use LWP::Simple;
# extract.pl
print "Enter the page URL: ";
chomp( my $domain = <STDIN> );
print "Enter the output HTML filename: ";
chomp( my $html_output = <STDIN> );
my $content = get($domain) or die $!;
my $stream = HTML::TokeParser->new( \$content ) or die $!;
while ( my $tag = $stream->get_tag( "table" ) ) {
if ( $tag->[1]{cellpadding} and $tag->[1]{cellpadding} eq '8' ) {
# what do i do here?
}
}

Comment