projects
/
Biblio-Z3950.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
952503a
)
use module name for database if missing
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 23 Oct 2010 12:51:04 +0000
(14:51 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sat, 23 Oct 2010 12:51:04 +0000
(14:51 +0200)
Scraper.pm
patch
|
blob
|
history
diff --git
a/Scraper.pm
b/Scraper.pm
index
27cf1b3
..
535f7b5
100644
(file)
--- a/
Scraper.pm
+++ b/
Scraper.pm
@@
-7,6
+7,9
@@
use WWW::Mechanize;
sub new {
my ( $class, $database ) = @_;
+
+ $database ||= $class;
+
my $self = {
mech => WWW::Mechanize->new(),
database => $database,