Re: [htmltmpl] h::t on different platforms
Brought to you by:
samtregar
From: Sam T. <sa...@tr...> - 2003-10-27 19:06:25
|
On Mon, 27 Oct 2003, Puneet Kishor wrote: > However, the following works fine on MacOS X > > my $template = HTML::Template->new( > filename => index.tmpl, > global_vars => 1, > loop_context_vars => 1, > filter => sub { $$ =~ s/<!--#.*?-->//g; } > ); Wow, that's twisted! Why are you modifying the PID of the process ($$)? > but gives the following error on Windows XP > > HTML::Template->new() : fatal error occured during filter call: > Modification of a read-only value attempted at > D:/htdocs/perlpim/cal/index.cgi line 28. > at D:/htdocs/perlpim/cal/index.cgi line 29 I guess the PID is readonly on XP. -sam |