Request/question
Eric Frazier <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <[email protected]> |
Hi,
Is there any way you could change this line in Template.pm from croak to
confess?
I know I might be missing something about croak vs confess, but it is
always a pain to get this error and then have to try to figure out where it
came from, whereas with confess it is easy..
# load in options supplied to new()
for (my $x = 0; $x <= $#_; $x += 2) {
defined($_[($x + 1)]) or croak("HTML::Template->new() called with odd
number of option parameters - should be of the form option => value");
$options->{lc($_[$x])} = $_[($x + 1)];
}
Thanks,
Eric
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642