Subject: | IMDB::Film v0.50 bug in _get_page_from_internet() |
Date: | Mon, 5 Sep 2011 12:41:12 -0700 (PDT) |
To: | "bug-IMDB-Film [...] rt.cpan.org" <bug-IMDB-Film [...] rt.cpan.org> |
From: | "Paul T." <paulinho4u [...] yahoo.com> |
The _get_page_from_internet() sub is outputting text to STDOUT... I would expect that the standard behavior for a module would be for it to be silent.... The code is (problem in RED):
sub _get_page_from_internet {
my CLASS_NAME $self = shift;
my $url = shift;
$self->_show_message("URL is [$url]...", 'DEBUG');
print "Calling URL: $url!\n";
my $page = get($url);
unless($page) {
$self->error("Cannot retieve an url: [$url]!");
$self->_show_message("Cannot retrieve url [$url]", 'CRITICAL');
}
return $page;
}
------------------
Paul Tavares