| 1 | package POD2::ES; | ||||||||||
| 2 | 1 | ▶ | use utf8; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use open ':utf8'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use base 'Exporter'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use base 'POD2::Base'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 1 | our $VERSION = '5.24.0.2'; | |||||||||
| 10 | |||||||||||
| 11 | 1 | our @EXPORT = qw(print_pod print_pods); | |||||||||
| 12 | |||||||||||
| 13 | # Versions list | ||||||||||
| 14 | sub pod_info {{ | ||||||||||
| 15 | 0 | ▶ | perl => '5.24.0', | ||||||||
|
Subroutine
pod_info: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 16 | perlbook => '5.24.0', | ||||||||||
| 17 | perlboot => '5.24.0', | ||||||||||
| 18 | perlbot => '5.24.0', | ||||||||||
| 19 | #perlcheat => '5.24.0', | ||||||||||
| 20 | #perlclib => '5.24.0', | ||||||||||
| 21 | perlcommunity => '5.24.0', | ||||||||||
| 22 | #perldata => '5.24.0', | ||||||||||
| 23 | perldbmfilter => '5.24.0', | ||||||||||
| 24 | perldoc => '5.24.0', | ||||||||||
| 25 | #perlexperiment => '5.24.0', | ||||||||||
| 26 | perlfaq1 => '5.24.0', | ||||||||||
| 27 | perlfaq2 => '5.24.0', | ||||||||||
| 28 | perlfreebsd => '5.24.0', | ||||||||||
| 29 | perlfunc => '5.24.0', | ||||||||||
| 30 | #perlgit => '5.24.0', | ||||||||||
| 31 | #perlglossary => '5.24.0', | ||||||||||
| 32 | perlhacktut => '5.24.0', | ||||||||||
| 33 | #perlhist => '5.24.0', | ||||||||||
| 34 | perlhurd => '5.24.0', | ||||||||||
| 35 | perlintro => '5.24.0', | ||||||||||
| 36 | perlmod => '5.24.0', | ||||||||||
| 37 | perlmodinstall => '5.24.0', | ||||||||||
| 38 | perlmroapi => '5.24.0', | ||||||||||
| 39 | perlnewmod => '5.24.0', | ||||||||||
| 40 | perlnumber => '5.24.0', | ||||||||||
| 41 | perlobj => '5.24.0', | ||||||||||
| 42 | perlootut => '5.24.0', | ||||||||||
| 43 | perlop => '5.24.0', | ||||||||||
| 44 | perlopenbsd => '5.24.0', | ||||||||||
| 45 | perlopentut => '5.24.0', | ||||||||||
| 46 | perlpragma => '5.24.0', | ||||||||||
| 47 | #perlre => '5.24.0', | ||||||||||
| 48 | perlsource => '5.24.0', | ||||||||||
| 49 | perlstyle => '5.24.0', | ||||||||||
| 50 | perltodo => '5.24.0', | ||||||||||
| 51 | perltooc => '5.24.0', | ||||||||||
| 52 | perltoot => '5.24.0', | ||||||||||
| 53 | perlunifaq => '5.24.0', | ||||||||||
| 54 | perlunitut => '5.24.0', | ||||||||||
| 55 | perlutil => '5.24.0', | ||||||||||
| 56 | }}; | ||||||||||
| 57 | |||||||||||
| 58 | # String for perldoc with -L switch | ||||||||||
| 59 | sub search_perlfunc_re { | ||||||||||
| 60 | 1 | ▶ | return 'Lista de funciones de Perl en orden'; | ||||||||
|
Subroutine
search_perlfunc_re: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 61 | } | ||||||||||
| 62 | |||||||||||
| 63 | # Print information about a pod file | ||||||||||
| 64 | sub print_pod { | ||||||||||
| 65 | 0 | ▶ | my $self = shift; | ||||||||
|
Subroutine
print_pod: not called CC=7 SCAR=40.3
Pod
documented
| |||||||||||
| 66 | |||||||||||
| 67 | 0 | ▶ | my @args = @_ ? @_ : @ARGV; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 68 | |||||||||||
| 69 | 0 | ▶ | unless (ref $self) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 70 | 0 | ▶ | if (defined $self) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 71 | 0 | ▶ | if ($self ne __PACKAGE__) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 72 | 0 | unshift @args, $self; | |||||||||
| 73 | 0 | $self = __PACKAGE__; | |||||||||
| 74 | } | ||||||||||
| 75 | } | ||||||||||
| 76 | else { | ||||||||||
| 77 | 0 | $self = __PACKAGE__; | |||||||||
| 78 | } | ||||||||||
| 79 | } | ||||||||||
| 80 | |||||||||||
| 81 | 0 | my $pods = $self->pod_info; | |||||||||
| 82 | |||||||||||
| 83 | 0 | ▶ | while (@args) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 84 | 0 | (my $pod = lc(shift @args)) =~ s/\.pod$//; | |||||||||
| 85 | 0 | ▶ | if ( exists $pods->{$pod} ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 86 | 0 | print "\t'$pod' traducido correspondiente a Perl $pods->{$pod}\n"; | |||||||||
| 87 | } | ||||||||||
| 88 | else { | ||||||||||
| 89 | 0 | print "\t'$pod' todavĂa no existe\n"; | |||||||||
| 90 | } | ||||||||||
| 91 | } | ||||||||||
| 92 | } | ||||||||||
| 93 | |||||||||||
| 94 | # Print list of translated pods | ||||||||||
| 95 | sub print_pods { | ||||||||||
| 96 | 0 | ▶ | my $self = @_ ? shift : __PACKAGE__; | ||||||||
|
Subroutine
print_pods: not called CC=2 SCAR=17.9
Pod
documented
Branch: 1 branch
| |||||||||||
| 97 | |||||||||||
| 98 | 0 | $self->SUPER::print_pods; | |||||||||
| 99 | } | ||||||||||
| 100 | |||||||||||
| 101 | 1 | 1; | |||||||||
| 102 | |||||||||||
| 103 | __END__ | ||||||||||