| Bing-Search documentation | Contained in the Bing-Search distribution. |
Bing::Search::Source - Base class for Sources.
my $source = Bing::Search::Source::Web->new(); $search->add_source( $source );
For details on what specific sources exist, see the documentation for the source in question.
Dave Houston, dhouston@cpan.org, 2010
This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.
| Bing-Search documentation | Contained in the Bing-Search distribution. |
package Bing::Search::Source; use Moose; has 'params' => ( is => 'rw', isa => 'HashRef' ); has 'source_name' => ( is => 'rw', isa => 'Str', lazy_build => 1 ); sub build_request { my $self = shift; my $params = $self->params; # anchor! params should be a nice hashref now. return $params; } __PACKAGE__->meta->make_immutable;