Skip Menu |

This queue is for tickets about the Parse-RecDescent CPAN distribution.

Report information
The Basics
Id: 42068
Status: open
Priority: 0/
Queue: Parse-RecDescent

People
Owner: Nobody in particular
Requestors: drrho [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in:
  • 1.96.0
  • v1.95.1
Fixed in: (no value)



Subject: warnings of "Use of uninitialized value in subtraction"
Parse/RecDescent.pm contains the following line (1885): $line = $lines[-1] - _linecount($grammar) + 1; If the @lines is empty then under test harnesses gazillions of warnings are emitted: Use of uninitialized value in subtraction.... A fix to $line = $lines[-1] || 0 - _linecount($grammar) + 1; makes the world peaceful again. \rho
Hello, Would it be possible for you to provide a small test case that exhibits this problem? I see that the current version of _generate does check for an uninitialized $lines[-1] near the top of the function. However, I'm not sure if that addresses the issue, or if there's something else going on. Thank you! Jeremy