Skip Menu |

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

Report information
The Basics
Id: 39569
Status: new
Priority: 0/
Queue: Algorithm-LCSS

People
Owner: Nobody in particular
Requestors: Jeremy.Krieg [...] youramigo.com
Cc:
AdminCc:

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



CC: bug-Algorithm-LCSS [...] rt.cpan.org
Subject: Bug in Algorithm::LCSS - uninitialized value warnings
Date: Wed, 24 Sep 2008 16:03:44 +0930
To: james.freeman [...] id3.org.uk
From: "Krieg, Jeremy" <Jeremy.Krieg [...] youramigo.com>
Dear Dr Freeman, I have a very simple proposed patch for a small bug in the the CPAN module Algorithm::LCSS, which apparently you wrote. If you try to run LCSS on two sequences that don't have a common substring, then as it stands the module will print the following error message to STDERR: Use of uninitialized value in array element at /usr/lib/perl5/site_perl/5.8.8/Algorithm/LCSS.pm line 70. This is a little bit messy and I was hoping to get rid of these error messages. This can be achieved very easily by inserting a new line just before the existing return statement at the end of the sub: return unless defined($index); return $css->[$index]; } This will provide the same functionality but without the error message. If you could implement this patch, that would be much appreciated. Thanks. Regards, ------------------------- Jeremy Krieg Senior Software Engineer YourAmigo Ltd. Phone: +61 (0) 8 8211 9211 IMPORTANT - This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information in which case neither is intended to be waived. YourAmigo retains ownership of all copyright, trade secrets and other intellectual property rights in the email and attachments. Any unauthorized review, use, disclosure or distribution is prohibited. If youare not the intended recipient, please notify us and remove it from your system. It is your responsibility to check any attachments for viruses and defects before opening or sending them on. YourAmigo collects personal information to provide and market our services. For more information about use, disclosure and access, see our privacy policy at http://www.youramigo.com