Skip Menu |

This queue is for tickets about the HTML-RSSAutodiscovery CPAN distribution.

Report information
The Basics
Id: 4288
Status: resolved
Priority: 0/
Queue: HTML-RSSAutodiscovery

People
Owner: ascope [...] cpan.org
Requestors: atusi [...] pure.ne.jp
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.1
Fixed in: (no value)



Subject: parse method cannot take scalar refference
HTML::RSSAutodiscovery document say parse method take a URI or an HTML string, passed as a scalar reference as argument. But parse method cannot take an HTML string scalar reference. One of the simple solution for this probrem is here: from HTML::RSSAutodiscovery Show quoted text
> sub parse { > my $self = shift; > my $uri = shift; > > my $data = undef; > > if (ref($data) ne "SCALAR") {
To replace "my $data = undef;" to "my $data = $uri;", it works. Thank you. Kato, Atsushi
[guest - Tue Nov 4 08:14:51 2003]: Show quoted text
> HTML::RSSAutodiscovery document say parse method take a URI or > an HTML string, passed as a scalar reference as argument. > But parse method cannot take an HTML string scalar reference. > > One of the simple solution for this probrem is here: > > from HTML::RSSAutodiscovery
> > sub parse { > > my $self = shift; > > my $uri = shift; > > > > my $data = undef; > > > > if (ref($data) ne "SCALAR") {
> > To replace "my $data = undef;" to "my $data = $uri;", > it works.
This has been fixed in version 1.2 - thanks!