Re: [htmltmpl] RE: re: h::t on different platforms
Brought to you by:
samtregar
From: Puneet K. <pk...@ei...> - 2003-10-28 18:17:03
|
I realized the error of my ways... (Thanks Sam). I was doing something without realizing I was doing it. This matter is a non-issue now. Thanks to everyone who responded. Jeff Pelkey wrote: > Howdy, > > Actually all Windows platforms (I am assuming Server 2003 is the same) only > allow you to Get the ProcessID. Are you trying to kill the process or are > you trying to change a process flag or something? > > Why are you trying to change the PID? What does that allow you to do on > other O/S's? I have never considered this something you could or would > change. > > Thanx, Jeff. > Sam Tregar wrote: > 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 |