Skip Menu |

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

Report information
The Basics
Id: 4515
Status: open
Priority: 0/
Queue: Algorithm-Diff

People
Owner: nedkonz [...] cpan.org
Requestors: adamk [...] cpan.org
Cc:
AdminCc:

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



Subject: Error conditions not documented
Algorithm::Diff is great, but doesn't explain what, for example, the diff function finds NO changes in the two sequences, or some form of error occurs. I'm about to go digging through the source, but it would be nice if they could be noted in the POD. Thanks
Having looked through the source, it appears that Algorithm::Diff doesn't do ANY error checking and if ( say ), something that isn't an array ref is passed to it, you just get an error somewhere deep in the Algorithm::Diff code...?
[guest - Fri Nov 28 07:48:34 2003]: Show quoted text
> Having looked through the source, it appears that Algorithm::Diff > doesn't do ANY error checking and if ( say ), something that isn't an > array ref is passed to it, you just get an error somewhere deep in the > Algorithm::Diff code...? >
Hmm... I guess you're right. I added a check for non-refs to the code. Thanks, Ned
[guest - Fri Nov 28 07:43:24 2003]: Show quoted text
> Algorithm::Diff is great, but doesn't explain what, for example, the > diff function finds NO changes in the two sequences,
The docs say that it returns a list of the edits. If there are no changes, that list is empty. I clarified that in the docs, though, as well as adding notes for the other functions (traverse_sequences, etc.) that note that they don't have useful return values. Show quoted text
> or some form of > error occurs.
It dies a horrible and obscure death, as you noted. Thanks, Ned