Re: [htmltmpl] Using search_path_on_include

2003-06-27 Thread Sam Tregar
On Fri, 27 Jun 2003, Adam Gent wrote: > We are trying to use one of the H::T options search_path_on_include > > But we can not seem to get it to work. What do you think it does? You didn't mention anywhere in your example which makes me think you might not understand the feature... > We are u

[htmltmpl] Using search_path_on_include

2003-06-27 Thread Adam Gent
Hi, We are trying to use one of the H::T options search_path_on_include But we can not seem to get it to work. We are using the following my $t = HTML::Template->new( filename => 'appgenform.tmpl', global_vars => 1, cache => 1, search_path_on_include => 1,

[htmltmpl] Re: nested loops

2003-06-27 Thread Mark Stosberg
In article <[EMAIL PROTECTED]>, Andrew Brosnan wrote: > In the docs, regarding nested loops it says: > > $template->param(LOOP => [{ name => 'Bobby', >nicknames => [{ name => 'the big bad wolf' }, > { name => 'He-Man' }, >

RE: [htmltmpl] catch the carp::croak() death...

2003-06-27 Thread Chris Davies
Chisel Wright [EMAIL PROTECTED] wrote: > I've always been uncomfortable using eval(). > I know /how/ to use it, but it just feels dirty. > What are the negative effects (if any) of using eval()? Fundamentally here are two different ways of using eval (plus, of course, the option of not using it a

RE: [htmltmpl] catch the carp::croak() death...

2003-06-27 Thread Cory Trese
Hello, a suggestion: Wrap your calls in 'load_tmpl( )' and then do my $ht = $self->load_tmpl(...) or my_error_handling_routine(...); Use the eval call in load_tmpl( ) to determine if you return false or true. Just the way I would do it ... Sincerely, Cory Trese Lead Web Application D

Re: [htmltmpl] catch the carp::croak() death...

2003-06-27 Thread Chisel Wright
On Fri, Jun 27, 2003 at 04:52:23AM -0400, Chris Reinhardt wrote: > eval { ...code that dies... }; > if ($@) { > # There was an error in the eval {} > } I've always been uncomfortable using eval(). I know /how/ to use it, but it just feels dirty. What are the negative effects (if any) of usi

Re: [htmltmpl] catch the carp::croak() death...

2003-06-27 Thread Philip S Tellis
On Fri, 27 Jun 2003, Vince Veggus wrote: > Is there a way to catch the "die" that carp::croak calls? perldoc -f eval perldoc -f die -- "I think trash is the most important manifestation of culture we have in my lifetime." - Johnny Legend --

Re[2]: [htmltmpl] catch the carp::croak() death...

2003-06-27 Thread Vince Veggus
Hello Chris, thanks - works fine! Best regards, Vincemailto:[EMAIL PROTECTED] - Friday, June 27, 2003, 10:52:23 AM, you wrote: CR> [snip] >> Is there a way to catch the "die" that carp::croak calls? CR> eval { ...code that dies... }; CR> if ($@) { CR>

Re: [htmltmpl] catch the carp::croak() death...

2003-06-27 Thread Chris Reinhardt
On Fri, 27 Jun 2003, Vince Veggus wrote: [snip] > Is there a way to catch the "die" that carp::croak calls? eval { ...code that dies... }; if ($@) { # There was an error in the eval {} } -- Chris Reinhardt [EMAIL PROTECTED] Systems Architect Dynamic DNS Network Services http://www.dyn

[htmltmpl] catch the carp::croak() death...

2003-06-27 Thread Vince Veggus
Hello all, this is not an exclusive html-template question but html-template uses carp::croak() too... A module similar to H::T croaks and therefore the script using this module ist stopped to immediately. A Message goes to stdoud and the script stops. I am unable to start my own error routines w