| 1 | package POD2::IT; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use 5.005; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use vars qw($VERSION); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | $VERSION = '0.13'; | |||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | use base qw(Exporter); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 1 | our @EXPORT = qw(print_pod print_pods search_perlfunc_re new pod_dirs); | |||||||||
| 10 | |||||||||||
| 11 | 1 | my $pods = { | |||||||||
| 12 | perl => '5.8.8', | ||||||||||
| 13 | perlbook => '5.8.8', | ||||||||||
| 14 | perlboot => '5.8.8', | ||||||||||
| 15 | perlbot => '5.8.8', | ||||||||||
| 16 | perlcheat => '5.8.8', | ||||||||||
| 17 | perldata => '5.8.8', | ||||||||||
| 18 | perlembed => '5.8.8', | ||||||||||
| 19 | perlfaq => '5.8.8', | ||||||||||
| 20 | perlfaq1 => '5.8.8', | ||||||||||
| 21 | perlfaq2 => '5.8.8', | ||||||||||
| 22 | perlfaq3 => '5.8.8', | ||||||||||
| 23 | perlfaq4 => '5.8.8', | ||||||||||
| 24 | perlfaq5 => '5.8.8', | ||||||||||
| 25 | perlfaq6 => '5.8.8', | ||||||||||
| 26 | perlfaq7 => '5.8.8', | ||||||||||
| 27 | perlfaq8 => '5.8.8', | ||||||||||
| 28 | perlfaq9 => '5.8.8', | ||||||||||
| 29 | perlfork => '5.8.8', | ||||||||||
| 30 | perlfunc => '5.8.8', | ||||||||||
| 31 | perlintro => '5.8.8', | ||||||||||
| 32 | perlipc => '5.8.8', | ||||||||||
| 33 | perllol => '5.8.8', | ||||||||||
| 34 | perlmod => '5.8.8', | ||||||||||
| 35 | perlmodinstall => '5.8.8', | ||||||||||
| 36 | perlmodstyle => '5.8.8', | ||||||||||
| 37 | perlnewmod => '5.8.8', | ||||||||||
| 38 | perlopentut => '5.8.8', | ||||||||||
| 39 | perlpacktut => '5.8.8', | ||||||||||
| 40 | perlref => '5.8.8', | ||||||||||
| 41 | perlreftut => '5.8.8', | ||||||||||
| 42 | perlrequick => '5.8.8', | ||||||||||
| 43 | perlreref => '5.8.8', | ||||||||||
| 44 | perlstyle => '5.8.8', | ||||||||||
| 45 | perlsub => '5.8.8', | ||||||||||
| 46 | perlsyn => '5.8.8', | ||||||||||
| 47 | perlthrtut => '5.8.8', | ||||||||||
| 48 | perltoot => '5.8.8', | ||||||||||
| 49 | perlunicode => '5.8.8', | ||||||||||
| 50 | perluniintro => '5.8.8', | ||||||||||
| 51 | perlvar => '5.8.8', | ||||||||||
| 52 | perlxstut => '5.8.8', | ||||||||||
| 53 | }; | ||||||||||
| 54 | |||||||||||
| 55 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 56 | 0 | return __PACKAGE__; | |||||||||
| 57 | } | ||||||||||
| 58 | |||||||||||
| 59 | 0 | ▶ | sub pod_dirs { | ||||||||
|
Subroutine
pod_dirs: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 60 | 0 | ( my $mod = __PACKAGE__ . '.pm' ) =~ s|::|/|g; | |||||||||
| 61 | 0 | ( my $dir = $INC{$mod} ) =~ s/\.pm\z//; | |||||||||
| 62 | 0 | return $dir; | |||||||||
| 63 | } | ||||||||||
| 64 | |||||||||||
| 65 | 0 | ▶ | sub print_pods { | ||||||||
|
Subroutine
print_pods: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 66 | 0 | print_pod(sort keys %$pods); | |||||||||
| 67 | } | ||||||||||
| 68 | |||||||||||
| 69 | 0 | ▶ | sub print_pod { | ||||||||
|
Subroutine
print_pod: not called CC=4 SCAR=30.0
Pod
documented
| |||||||||||
| 70 | 0 | ▶ | my @args = @_ ? @_ : @ARGV; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 71 | |||||||||||
| 72 | 0 | ▶ | while (@args) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 73 | 0 | (my $pod = lc(shift @args)) =~ s/\.pod$//; | |||||||||
| 74 | 0 | ▶ | if ( exists $pods->{$pod} ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 75 | 0 | print "\t'$pod' translated from Perl $pods->{$pod}\n"; | |||||||||
| 76 | } | ||||||||||
| 77 | else { | ||||||||||
| 78 | 0 | print "\t'$pod' doesn't yet exists\n"; | |||||||||
| 79 | } | ||||||||||
| 80 | } | ||||||||||
| 81 | } | ||||||||||
| 82 | |||||||||||
| 83 | 0 | ▶ | sub search_perlfunc_re { | ||||||||
|
Subroutine
search_perlfunc_re: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 84 | 0 | return 'Elenco delle funzioni Perl in ordine alfabetico'; | |||||||||
| 85 | } | ||||||||||
| 86 | |||||||||||
| 87 | 1 | 1; | |||||||||
| 88 | __END__ | ||||||||||