use strict; package WWW::Scraper::Opcode::SELECT; use base qw(WWW::Scraper::Opcode); use vars qw($VERSION); # new() Scraper::Opcode # $cls - Op class # $scaffold - current scaffold # $params - ref to array of params in the 'OP()' portion of the scaffold. sub new { my ($cls, $scaffold, $params) = @_; my $self = bless {}; $self->{'fieldsDiscovered'} = ['name']; return $self; } sub scrape { my ($self, $scraper, $scaffold, $TidyXML, $hit) = @_; my ($sub_string, $attributes) = $TidyXML->getMarkedTextAndAttributes('SELECT'); return undef unless $attributes; return ($self->_next_scaffold($scaffold), $sub_string, $attributes); } 1;