Skip Menu |

This queue is for tickets about the Encode-Locale CPAN distribution.

Report information
The Basics
Id: 89619
Status: rejected
Priority: 0/
Queue: Encode-Locale

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

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



Subject:
Date: Sat, 19 Oct 2013 11:41:18 +0300
To: bug-Encode-Locale [...] rt.cpan.org
From: Afanasiy Fet <dailylama [...] gmail.com>
R:\ae\perl>echo use LWP::Simple; > lwp.pl R:\ae\perl>perl -Wc lwp.pl Name "Encode::Locale::ENCODING_CP1251" used only once: possible typo at R:/strawberry/perl/vendor/lib/Encode/Locale.pm line 106. lwp.pl syntax OK R:\ae\perl>cpanm Encode::Locale Encode::Locale is up to date. (1.03) R:\ae\perl>perl -v This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x64-multi-t hread quick fix _init(); Encode::Alias::define_alias(sub { no strict 'refs'; no warnings 'once'; my $a = defined ${"ENCODING_" . uc(shift)}; if ($a) { return ${"ENCODING_" . uc(shift)}; } return "ENCODING_UTF8"; }, "locale");

Message body is not shown because sender requested not to inline it.

This warning is exactly the one that "no warnings 'once';" is supposed to suppress.  Why isn't that happening?  Isn't that the real bug?
On 2013-10-19 05:42:25, GAAS wrote: Show quoted text
> This warning is exactly the one that "no warnings 'once';" is supposed to > suppress. Why isn't that happening? Isn't that the real bug?
The original poster is using "-W", which (citing perlrun.pod) 'Enables all warnings regardless of "no warnings"'. I don't think users should use -W. Regards, Slaven