Skip Menu |

This queue is for tickets about the ParseLex CPAN distribution.

Report information
The Basics
Id: 14785
Status: resolved
Priority: 0/
Queue: ParseLex

People
Owner: Nobody in particular
Requestors: sohlow [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 2.15
Fixed in: (no value)



Subject: Parse::Lex
Parse/Template.pm:1 missing ';' in "use strict" Parse/Template.pm:135 $expr isn't declared via 'my' test4 is also broken i took someone else's advice and munged the data so it would find what its lookin' for. i included a patch with the fixes.
diff -ur ParseLex-2.15.broken/lib/Parse/Template.pm ParseLex-2.15/lib/Parse/Template.pm --- ParseLex-2.15.broken/lib/Parse/Template.pm 1999-09-23 04:16:28.000000000 -0400 +++ ParseLex-2.15/lib/Parse/Template.pm 2005-09-27 21:57:14.378984408 -0400 @@ -1,4 +1,4 @@ -use strict +use strict; require 5.004; package Parse::Template; $Parse::Template::VERSION = '0.32'; @@ -132,7 +132,7 @@ } # evaluated expressions are not always available in (caller(1))[6]; if (defined($1) and $1 ne '') { - $expr = $1; # what is the template expression? + my $expr = $1; # what is the template expression? { package DB; # what is the part name? @DB::caller = caller(2); # why is this needed? /ee? @DB::caller = caller(1); diff -ur ParseLex-2.15.broken/t/test4.t ParseLex-2.15/t/test4.t --- ParseLex-2.15.broken/t/test4.t 1999-09-23 04:16:26.000000000 -0400 +++ ParseLex-2.15/t/test4.t 2005-09-27 21:59:41.440627640 -0400 @@ -54,4 +54,4 @@ [main::lexer|Parse::CLex] Token read (NEWLINE, \n): [main::lexer|Parse::CLex] Token read (ERROR, .*): this is an invalid string with a "" in it" -can't analyze: "this is an invalid string with a "" in it"" at examples/ctokenizer.pl line 17, <DATA> chunk 4. +can't analyze: "this is an invalid string with a "" in it"" at examples/ctokenizer.pl line 17, <DATA> line 4.
 VERSION 2.16 - 5/01/2010
 
o New maintainer pscust@cpan.org
o Parse::Template 0.33 : Fix syntax errors
  Solves RT #7880, #12845, #14785, #11807, #48964, #53112
o Parse::Token    2.16 : Fix syntax errors
  Solves RT #12845, #36285, #48964, #53112
o test4.t : adapt to current Perl (line vs chunk)
  Solves RT #158, #11808, #11809, #12846, #14785, #48964, #53112
o tests : add blib/lib to Perl path
  Solves RT #48964, #53112
o Added test8.t with code from RT #1861, but error is not reproduced in Perl 5.10, and 
  patch does not work in Perl 5.10; patch not added.