Skip Menu |

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

Report information
The Basics
Id: 38325
Status: resolved
Priority: 0/
Queue: HTML-Template

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

Bug Information
Severity: Wishlist
Broken in: 2.9
Fixed in: (no value)



Subject: wish: better diagnostic when provided a reference to a reference ( "Can't call 'isa' on unblessed reference" )
HTML::Template has generally great diagnostics. Yesterday we ran into a case that could be improved. If you accidentally pass to param() a reference to a reference, it dies with an error message pointing deep into the bowels of HTML::Template, instead of telling the user where /their/ problem is. I believe the logic assumes that if a reference is not an array reference or a hash reference, it must be a code reference. An extra check could be added so that a "reference to a reference" is not assumed to be an object reference.
This is fixed in the Git tree for HTML::Template and will appear in the upcoming 2.10 release.