Re: [htmltmpl] Bug in die_on_bad_params handling
Brought to you by:
samtregar
From: Mark F. <mar...@ea...> - 2005-07-07 16:33:16
|
From: "Matija Grabnar" <mat...@ar...> > Setting up the loops would be expensive, since it involves a LOT of data You may already know this. It would be fairly easy for you to subclass H::T to use your own modified param method. Modify it to accept a second parameter: ======== @foo=({bar=>1,baz=>2},{bar=>3,baz=>4}); @die=(1,0); $t->param(foo=>\@foo, \@die); ======== Then, in the param method's loop have it test the corresponding die parameter instead of the global setting. BTW: I think your request makes *a lot* of sense. I'd call it an enhancement instead of a bug. Mark |