[htmltmpl] Request/question
Brought to you by:
samtregar
From: Eric F. <er...@dm...> - 2006-03-21 17:26:32
|
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 |