Skip Menu |

This queue is for tickets about the OAuth-Consumer CPAN distribution.

Report information
The Basics
Id: 107435
Status: open
Priority: 0/
Queue: OAuth-Consumer

People
Owner: Nobody in particular
Requestors: florent.mara [...] gmail.com
Cc:
AdminCc:

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



Subject: OAuth::Consumer experimental warnings
Date: Thu, 1 Oct 2015 12:44:58 +1300
To: bug-OAuth-Consumer [...] rt.cpan.org
From: florent mara <florent.mara [...] gmail.com>
Distribution name and version: OAuth::Consumer-0.03 Perl version 5.20.2 Operating System vendor and version: Debian Jessie With Perl versions 5.18.0 and above, experimental features now warn. Loading OAuth::Consumer on Perl 5.20.2 results in 11 warning being raised, as follows. given is experimental at /usr/local/share/perl/5.20.2/OAuth/Consumer.pm line 326. when is experimental at /usr/local/share/perl/5.20.2/OAuth/Consumer.pm line 327. when is experimental at /usr/local/share/perl/5.20.2/OAuth/Consumer.pm line 328. given is experimental at /usr/local/share/perl/5.20.2/OAuth/Consumer.pm line 471. when is experimental at /usr/local/share/perl/5.20.2/OAuth/Consumer.pm line 472. when is experimental at /usr/local/share/perl/5.20.2/OAuth/Consumer.pm line 476. when is experimental at /usr/local/share/perl/5.20.2/OAuth/Consumer.pm line 480. given is experimental at /usr/local/share/perl/5.20.2/OAuth/Consumer.pm line 519. when is experimental at /usr/local/share/perl/5.20.2/OAuth/Consumer.pm line 520. when is experimental at /usr/local/share/perl/5.20.2/OAuth/Consumer.pm line 523. when is experimental at /usr/local/share/perl/5.20.2/OAuth/Consumer.pm line 526. It is possible to reproduce the warnings using the following code #! /usr/bin/perl use strict; use warnings; use Test::More; BEGIN { use_ok('OAuth::Consumer', '0.03'); } done_testing(); The fix I applied to Consumer.pm to suppress the warnings is no if $] >= 5.018, warnings => "experimental"; Please do not hesitate to let me know if you have any questions.
On 2015-09-30 16:45:27, florent.mara@gmail.com wrote: Show quoted text
> > The fix I applied to Consumer.pm to suppress the warnings is > no if $] >= 5.018, warnings => "experimental"; > > Please do not hesitate to let me know if you have any questions.
A better solution would be: use experimental 'smartmatch'; So as to not suppress *all* experimental warnings, just the features that are being intentionally used.