Skip Menu |

This queue is for tickets about the Catalyst-Action-REST CPAN distribution.

Report information
The Basics
Id: 52642
Status: rejected
Priority: 0/
Queue: Catalyst-Action-REST

People
Owner: Nobody in particular
Requestors: ddascalescu+perl [...] gmail.com
Cc:
AdminCc:

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



Subject: Odd code comparing $rc to 0 or 1 using eq
I don't see what is 'odd' about it. A text exception is returned if the serialize has issues. 0 is returned for unsupported media 1 is returned for ok Therefore you need to string compare 0 (avoiding warnings if the string is an exception), and string compres ne 1.. It's not the API design I'd have _chosen_ myself, but it makes perfect sense (and the fact that string not numeric comparison is being used makes sense). Cheers t0m