Skip to content

Instantly share code, notes, and snippets.

@fujiwara
Created October 13, 2009 06:24
Show Gist options
  • Save fujiwara/209051 to your computer and use it in GitHub Desktop.
Save fujiwara/209051 to your computer and use it in GitHub Desktop.
package Example;
use URI;
use Web::Scraper;
my $URL = 'http://www.topicmaker.com';
my @FOO = qw/ foo /;
sub scrape {
scraper {
process '//tr', 'rows[]', scraper {
warn @FOO;
};
}->scrape( URI->new($URL) );
}
1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment