| 1 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 1 | ▶ | use v5.28; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | package App::puzzl::new; | ||||||||||
| 4 | 1 | ▶ | use Exporter 'import'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 1 | ▶ | use File::Path qw(make_path); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 0 | ▶ | sub new_day { | ||||||||
|
Subroutine
new_day: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 8 | 0 | my ($day) = @_; | |||||||||
| 9 | |||||||||||
| 10 | 0 | make_path('days'); | |||||||||
| 11 | |||||||||||
| 12 | 0 | ▶ | open(my $code, '>', "days/day$day.pl") or die "failed to open file days/$day.pl"; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | |||||||||||
| 14 | 0 | print $code <<'EOF'; | |||||||||
| 15 | use strict; | ||||||||||
| 16 | use v5.28; | ||||||||||
| 17 | |||||||||||
| 18 | sub part1 { | ||||||||||
| 19 | my ($input_fh) = @_; | ||||||||||
| 20 | } | ||||||||||
| 21 | |||||||||||
| 22 | sub part2 { | ||||||||||
| 23 | my ($input_fh) = @_; | ||||||||||
| 24 | } | ||||||||||
| 25 | EOF | ||||||||||
| 26 | 0 | close($code); | |||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | 1 | our @EXPORT_OK = qw(new_day); | |||||||||
| 30 | |||||||||||
| 31 | 1 | 1; | |||||||||