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.