On Mon, Nov 26, 2001, yes, that long ago, Randal L. Schwartz wrote:
> Yes, Template::Document::_write_perl_file needs to do a "write to temp
> then rename". Right now, it just writes the actual name, so it's
> possible to get a partially written file. :(
I finally got around to fixing this. Use
> The PID is way more unreliable on Win32 systems. $$ gets reused very very
> quickly (or sometimes completely reused) on Win32 ISAPI Perl.
>
> Even if you base it off of a timestamp (or a second) you are going to have
> problems.
Since the goal is just to get a unique temporary file, I'd say for
I apologize in advance if this post makes some bad assumptions (so please
pick away!) because I am not familiar with the TT caching algorithm
assumptions. However, I did want to discourage the use of $$ one more time
before it gets too late because I know the majority of TT Users are
probably
Piers Cawley <[EMAIL PROTECTED]> said something to this effect on 11/27/2001:
> Sometimes I wish there was a simple perl 'make_UUID' function...
Have you seen Data::UUID?
You can do something like:
my $d = Data::UUID->new;
my $uid = $d->create;
print $d->to_string($uid);
Which produces
darren chamberlain <[EMAIL PROTECTED]> writes:
> What does /var/templates/home2/www-dp-stage/www-dp/rosas/lyrics/index.htm
> look like? Can you require it outside of TT?
>
> I.e.:
>
> $ perl -e 'require
"/var/templates/home2/www-dp-stage/www-dp/rosas/lyrics/index.htm"'
It's fine.
>
> It sou
I was trying to thrash my server to see whether turning on tmplate
caching made any difference. I'm getting occasional:
compiled template : Can't find string terminator '"' anywhere before EOF at
/var/templates/home2/www-dp-stage/www-dp/rosas/lyrics/index.htm line 18.
Compilation failed in requi