Skip Menu |

This queue is for tickets about the PostScript-PPD CPAN distribution.

Report information
The Basics
Id: 57739
Status: resolved
Priority: 0/
Queue: PostScript-PPD

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

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



Subject: Missing string comparison overload
PostScript::PPD::Subkey objects are string overloaded but are missing a string comparison operator. This breaks their masquerading as a string. Test::More 0.96 will no longer stringify its arguments before comparing, this was considered a bug. Apologies for the inconvenience. This reveals string overloaded objects which do not implement a comparison operator, which is generally an oversight rather than a feature. We recommend you turn on fallback or implement cmp (which eq will fall back to), test with Test::More 0.95_02 and release ASAP. Test::More 0.96 is holding off until all affected modules are informed. Here is a simple cmp implementation. 'cmp' => sub { my($a, $b, $order) = @_; return $order ? "$b" cmp "$a" : "$a" cmp "$b" }
On Fri May 21 19:51:52 2010, MSCHWERN wrote: Show quoted text
> We recommend you turn on fallback
Done in 0.0202