Am Di 20. Okt 2009, 11:38:13, ALEXK schrieb:
Show quoted text> There is a problem with the use of a while-loop in LaTex::Driver's
> run_latex method when iterating over the log file lines: a while-loop as
> opposed to a foreach-loop does not set $_ to the current element. So the
> log file evaluation seems to be broken and I suggest to replace it with
> a foreach-loop.
>
> Cheers
> Alexander
Well not quite right. It is rather that the <> operator does not
local($_) before assigning a log line in the while loop expression. If
Latex::Driver is run inside a loop construct making use of $_ a
"Modification of a read-only value attempted" error is thrown.
A feasable solution to this might be a "local($_)" before the while loop.
Unfortunately the issue was not quite obvious, as the error was not
properly propagated to Template::Plugin::Latex I am using LaTeX::Driver
from.
I don't want to close without saying thank you for this module that I
have been making good use of for so long now.
Alexander