Skip Menu |

This queue is for tickets about the String-LCSS CPAN distribution.

Report information
The Basics
Id: 18638
Status: resolved
Priority: 0/
Queue: String-LCSS

People
Owner: Nobody in particular
Requestors: pheimann [...] cybercash.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.12
Fixed in: 1.00



Subject: Unitialized value in comparison
When run with warnings, messages appear: Use of uninitialized value in string eq at /usr/local/perl/lib/site_perl/String/LCSS.pm line 55. Fix: *** lib/String/LCSS.pm.orig Thu Apr 10 18:08:21 2003 --- lib/String/LCSS.pm Mon Apr 10 18:53:20 2006 *************** *** 50,56 **** $j = $k; $length = 0; for ( $ii = 0; $ii < ($m-$i); $ii++ ) { ! if ( $x[$i+$ii] eq $y[$j] ) { $xi = $i+$ii unless ( $length ); $xj = $j unless ( $length ); $length++; --- 51,57 ---- $j = $k; $length = 0; for ( $ii = 0; $ii < ($m-$i); $ii++ ) { ! if ( $j < $n && $x[$i+$ii] eq $y[$j] ) { $xi = $i+$ii unless ( $length ); $xj = $j unless ( $length ); $length++;