Re: Bug in die_on_bad_params handling
"Mark Fuller" <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <001b01c58311$8f4ba830$6501a8c0@markhome> |
From: "Matija Grabnar" <[email protected]> > 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 ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click