BookBot/Alias.pm untested

filter: Statementstmt 0.0% 0 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 7 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 33 CC 1 SCAR 6.9
CC
1
Cov
0%
alias2class
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package WWW::BookBot::Alias;
2  
3 use 5.008;
4 use strict;
5 use warnings;
6 no warnings qw(uninitialized);
7 use base qw(Exporter);
8 use vars qw($VERSION @EXPORT @EXPORT_OK);
9 $VERSION = "1.02";
10 @EXPORT = qw(
11 alias2class
12 );
13 @EXPORT_OK = @EXPORT;
14  
15 our %aliases;
16  
17 sub alias2class {
18 return $aliases{lc($_[0])};
19 }
20  
21 %aliases=(
22 #Alias Begin
23 agr_cast => 'WWW::BookBot::Chinese::Agriculture::Cast',
24 agr_cngreen_market => 'WWW::BookBot::Chinese::Agriculture::GreenHouse::Market',
25 agr_cngreen_tech => 'WWW::BookBot::Chinese::Agriculture::GreenHouse::Tech',
26 dragonsky => 'WWW::BookBot::Chinese::Novel::DragonSky',
27 shuku => 'WWW::BookBot::Chinese::Novel::ShuKu',
28 wanfang => 'WWW::BookBot::Chinese::Periodical::WanFang',
29 #Alias End
30 );
31  
32 1;
33 __END__