| 1 | package builder::MyBuilder; | ||||||||||
| 2 | |||||||||||
| 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 base qw(Module::Build); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 1 | ▶ | use File::Spec; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | ▶ | use File::Path; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | sub ACTION_code { | ||||||||||
| 10 | 1 | ▶ | my $self = shift; | ||||||||
|
Subroutine
ACTION_code: called CC=3 SCAR=11.2
Pod
undocumented
| |||||||||||
| 11 | 1 | $self->SUPER::ACTION_code(); | |||||||||
| 12 | 1 | my $archdir = File::Spec->catdir($self->blib,'arch','auto','WWW','Form','UrlEncoded','XS'); | |||||||||
| 13 | 1 | ▶ | File::Path::mkpath($archdir, 0, oct(777)) unless -d $archdir; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | 1 | my $keep_arch = File::Spec->catfile($archdir,'.keep'); | |||||||||
| 15 | 1 | ▶ | open(my $fh,'>',$keep_arch) or die "Couldnot open file for write: $keep_arch, $!"; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | 1 | print $fh "This file required to install files to archdir for backward compatibility\n"; | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 1 | 1; | |||||||||