OK, maybe I'm not too savvy at using ActiveState's PPM (Perl Package
Manager), but the latest version of CGI::Application I can find in either of
the two repositories I can find (maybe there are more?!), is version 1.2.
This leads me to the following issue. I read the readme's on CPAN for more
recent versions. In particular I was interested in the following change
from v1.3.1 noted in the readme for v2.0 (I know you are up to v2.1
however):
"HTML::Template is now only loaded if load_tmpl() is called."
I'm writing an app on a Win2k intranet server that may get ported to a Linux
internet server, and I do plan on using templates. However, for portability
issues I am concerned with the following from the docs I have for version
1.2:
"It is important to make sure your tmpl_path() ends with your operating
system's directory delimiter ('/' for UNIX, '\' for windows, ':' for
Macintosh, etc). The load_tmpl() method does not try to make sense of the
various OS particularities -- it simply prepends tmpl_path() to the file
name passed to load_tmpl()."
>From the source code for v1.2, load_tmpl() seems to be about the only place
that any file-specific functions are used. Perhaps the appropriate module,
particularly File::Spec::Functions <File::Spec::Functions> (part of the
standard distributions anymore) could ALSO be loaded when load_tmpl() is
called, and then the following line inside the load_tmpl code:
my $fq_tmpl_file = $self->tmpl_path() . $tmpl_file;
Could be rewritten as:
My $fq_tmpl_file = catfile($self->tmpl_path(), $tmpl_file);
Guess I should get v2.1 off CPAN. If anyone's interested, I'll hack the
source myself and test it, then submit it as a patch?! (Actually I may also
want to strip a possible delimiter off the end of tmpl_path, for backward
compatibility .... ah the wheels are turning ....)
George M. Jempty
Database Administrator
Regional West Medical Center
Scottsbluff, Nebraska
308.630.2408