undef error - Modification of a read-only value attempted at /usr/local/lib/perl5/site_perl/5.8.0/mach/Template/Filters.pm line 680
I do not quite understand the code, but it seems that $_ is somehow readonly at whis point (but I do not have any idea why).
Anyway, the simple patch below corrects the problem. What is really happening there and what is the right solution?
perl v5.8.0 built for i386-freebsd Template Toolkit 2.10 TeX Version 3.14159 (Web2C 7.4.5)
--- Template-Toolkit-2.12/lib/Template/Filters.pm Mon Jan 12 22:37:55 2004
+++ ../Filters.pm Thu Mar 11 09:11:16 2004
@@ -677,7 +677,7 @@
# Try to extract just the interesting errors from
# the verbose log file
#
- while ( <FH> ) {
+ while ( my $errline = <FH> ) {
#
# TeX errors seems to start with a "!" at the
# start of the line, and are followed several
@@ -686,11 +686,11 @@
# We make sure we pick up every /^!/ line, and
# the first /^l.\d/ line after each /^!/ line.
#
- if ( /^(!.*)/ ) {
+ if ( $errline =~ /^(!.*)/ ) {
$texErrs .= $1 . "\n";
$state = 1;
}
- if ( $state == 1 && /^(l\.\d.*)/ ) {
+ if ( $state == 1 && $errline =~ /^(l\.\d.*)/ ) {
$texErrs .= $1 . "\n";
$state = 0;
}
---
Professional hosting for everyone - http://www.host.ru
_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
