Skip Menu |

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

Report information
The Basics
Id: 32010
Status: resolved
Priority: 0/
Queue: HTML-TableContentParser

People
Owner: Nobody in particular
Requestors: wyant [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 0.13
Fixed in: 0.200



Subject: Test fails under Perl 5.10.0 under Mac OS X 10.3.9
What appears to be happening is that $#{@$tables} is coming up -1 under Perl 5.10.0, so the header and content tests get skipped. The perldelta for 5.10 says that the $# variable has been removed, but that's the default output format for numbers. Maybe someone went overboard? I have reported this to the Perl porters; it's bug 49230; see http://rt.perl.org/rt3/Public/Bug/Display.html?id=49230 I have attached 1.pat, a universal diff showing one way to deal with this. Thank you very much for your time and trouble.
Subject: 1.pat
Download 1.pat
application/octet-stream 588b

Message body not shown because it is not plain text.

The Perl5 porters tell me that the change in behavior of $#{@$x} is a bug fix, which would be obvious with 'use strict;' asserted. The deal is that the block inside the brackets is evaluated in scalar context, so @$x becomes, literally, 3.
The follow-up to the Perl bug report has finally provided the supported way to do $#{@$x}. It's $#$x, which I guess makes sense if you think about it a bit. Anyhow, please ignore my original patch, since this looks like a better way to do it.
I have forked gitpan/HTML-TableContentParser as trwyant/perl-HTML-TableContentParser, and applied a patch for this and 80317 Undeclared dependency on HTML::Parser. If you are willing to grant me co-maintainer status I am willing to make a release.