NAME
CPAN::Search::Lite::Lang - export some common data structures used by CPAN::Search::Lite::*
DESCRIPTION
This module exports some common data structures used by other CPAN::Search::Lite::* modules. At present these are
$chaps_desc
This is a hash reference giving a description, in different languages, of the various CPAN chapter ids.
foreach my $lang(sort keys %$chaps_desc) { print "For language $lang\n"; foreach my $id(sort {$a <=> $b} keys %{$chaps_desc->{$lang}}) { print " $id => $chaps_desc->{$lang}->{$id}\n"; } }
Special characters used are HTML-encoded.
$dslip
This is a hash reference describing the dslip (development, support, language, interface, and public license) information, available in different languages:
for my $lang (sort keys %$dslip) { print "For language $lang:\n"; for my $key (qw/d s l i p/) { print " For key $key: $dslip->{$lang}->{$key}->{desc}\n"; for my $entry (sort keys %{$dslip->{$lang}->{$key}}) { next if $entry eq 'desc'; print " Entry $entry: $dslip->{$lang}->{$key}->{$entry}\n"; } } }
Special characters used are HTML-encoded.
%na
Translation of the phrase
not known
.%langs
This hash, whose keys are the keys of
%na
and whose values are1
, is a lookup hash to see what languages are available:for my $lang (keys %langs) { print "Language $lang is present\n"; }
$pages
This hash, with keys being various languages, provides some translations of terms used in the header and footer of the tt2 pages.
$months
This hash, with keys being various languages, provides translations of the abbreviations of names of the months.