Skip Menu |

This queue is for tickets about the Games-Roshambo CPAN distribution.

Report information
The Basics
Id: 47800
Status: open
Priority: 0/
Queue: Games-Roshambo

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

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



Subject: Optionally Silence Warnings
Inside Flexo (the next generation of Bender) I have code like the following: my $choice = $self->rps->name_to_num($$message); return PCI_EAT_NONE unless $choice; But if I pass anything that isn't valid I get: Invalid Throw Name TRUST BAR, returning undef at /Users/perigrin/foo/lib/perl5/Games/Roshambo.pm line 90. Which is fair but it causes warnings unless I specifically check for valid throw names which is silly since you check yet again for a valid throw name. I'd like to be able to optionally disable this warning somehow.
On Sat Jul 11 16:59:40 2009, PERIGRIN wrote: Show quoted text
> Inside Flexo (the next generation of Bender) I have code like the
following: Show quoted text
> > my $choice = $self->rps->name_to_num($$message); > return PCI_EAT_NONE unless $choice; > > But if I pass anything that isn't valid I get: > > Invalid Throw Name TRUST BAR, returning undef at > /Users/perigrin/foo/lib/perl5/Games/Roshambo.pm line 90. > > Which is fair but it causes warnings unless I specifically check for > valid throw names which is silly since you check yet again for a valid > throw name. I'd like to be able to optionally disable this warning
somehow. I'd be willing to make this patch if I knew where the source repository was too.