reclusivemonkey has asked for the wisdom of the Perl Monks concerning the following question:
I tried posting this to perl.beginners on usenet but I guess it must be too basic as the mods don't seem to be adding it :-S I know I am trying to learn to run before I can walk but nothing I have read leads me any closer to understanding what I need to do here.#!/usr/bin/perl use strict; use warnings; use HTML::TableExtract; use WWW::Mechanize; my $url = "http://www.example.com"; my $mech = WWW::Mechanize->new(); $mech->agent_alias( 'Mac Safari' ); $mech->get( $url ); my $te = HTML::TableExtract->new( headers => [qw(Company Salary)] ); $te->parse($mech->content); foreach my $row ($te->rows) { print join(' - ', @$row); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Where to add substitution?
by moritz (Cardinal) on May 05, 2009 at 19:59 UTC | |
|
Re: Where to add substitution?
by linuxer (Curate) on May 05, 2009 at 20:04 UTC | |
by reclusivemonkey (Initiate) on May 05, 2009 at 21:45 UTC | |
|
Re: Where to add substitution?
by kennethk (Abbot) on May 05, 2009 at 19:57 UTC | |
|
Re: Where to add substitution?
by trwww (Priest) on May 05, 2009 at 22:34 UTC |