summaryrefslogtreecommitdiff
path: root/dist/I18N-LangTags
diff options
context:
space:
mode:
authorDavid E. Wheeler <david@kineticode.com>2011-01-27 20:33:44 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-01-27 21:41:39 -0800
commit364c63cff540b8186bf5b6dcf366e1270ba5020e (patch)
tree64eae15283be9b77c3eba5af8d322c9d765dfde6 /dist/I18N-LangTags
parent7bd6b0e6531a2bf944362cebd59289d28c85309f (diff)
downloadperl-364c63cff540b8186bf5b6dcf366e1270ba5020e.tar.gz
Suppress "Name used only once" warnings.
From Locale::Maketext and I18N::LangTags::Detect. To replicate, run perl -Idist/Locale-Maketext/lib -Icpan/IPC-Cmd/lib -Idist/I18N-LangTags/lib -we "use IPC::Cmd"
Diffstat (limited to 'dist/I18N-LangTags')
-rw-r--r--dist/I18N-LangTags/lib/I18N/LangTags/Detect.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/dist/I18N-LangTags/lib/I18N/LangTags/Detect.pm b/dist/I18N-LangTags/lib/I18N/LangTags/Detect.pm
index 87280b7b51..e767aacb09 100644
--- a/dist/I18N-LangTags/lib/I18N/LangTags/Detect.pm
+++ b/dist/I18N-LangTags/lib/I18N/LangTags/Detect.pm
@@ -136,6 +136,7 @@ sub _try_use { # Basically a wrapper around "require Modulename"
my $module = $_[0]; # ASSUME sane module name!
{ no strict 'refs';
+ no warnings 'once';
return($tried{$module} = 1)
if %{$module . "::Lexicon"} or @{$module . "::ISA"};
# weird case: we never use'd it, but there it is!