| 1 | # | ||||||||||||
| 2 | # This file is part of ASPEER::MakeMaker::Markdown::Publish. | ||||||||||||
| 3 | # | ||||||||||||
| 4 | # This software is copyright (c) 2026 by Andrew Speer <andrew.speer@isolutions.com.au>. | ||||||||||||
| 5 | # | ||||||||||||
| 6 | # This is free software; you can redistribute it and/or modify it under | ||||||||||||
| 7 | # the same terms as the Perl 5 programming language system itself. | ||||||||||||
| 8 | # | ||||||||||||
| 9 | # Full license text is available at: | ||||||||||||
| 10 | # | ||||||||||||
| 11 | # <http://dev.perl.org/licenses/> | ||||||||||||
| 12 | # | ||||||||||||
| 13 | |||||||||||||
| 14 | package ASPEER::MakeMaker::Markdown::Publish::MM::Constant; | ||||||||||||
| 15 | |||||||||||||
| 16 | 2 | ▶ | use strict qw(vars); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 17 | 2 | ▶ | use warnings; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 18 | 2 | ▶ | use vars qw($VERSION @ISA %EXPORT_TAGS @EXPORT_OK @EXPORT %Constant); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 19 | |||||||||||||
| 20 | 2 | ▶ | use Cwd qw(abs_path); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 21 | 2 | ▶ | use File::Basename qw(dirname); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 22 | 2 | ▶ | use File::Spec; | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 23 | |||||||||||||
| 24 | 2 | $VERSION='1.004'; | |||||||||||
| 25 | |||||||||||||
| 26 | 2 | my $local_fn=abs_path(__FILE__).'.local'; | |||||||||||
| 27 | |||||||||||||
| 28 | %Constant=( | ||||||||||||
| 29 | MM_PREFIX => 'PUBLISH', | ||||||||||||
| 30 | |||||||||||||
| 31 | TEMPLATE_POSTAMBLE_FN => | ||||||||||||
| 32 | File::Spec->catfile(dirname(abs_path(__FILE__)), 'postamble.inc'), | ||||||||||||
| 33 | |||||||||||||
| 34 | PUBLISH_PM => 'ASPEER::MakeMaker::Markdown::Publish::MM', | ||||||||||||
| 35 | |||||||||||||
| 36 | PUBLISH_PM_ARGV => join(',', qw[ | ||||||||||||
| 37 | "$(NAME)" | ||||||||||||
| 38 | "$(NAME_SYM)" | ||||||||||||
| 39 | "$(DISTNAME)" | ||||||||||||
| 40 | "$(DISTVNAME)" | ||||||||||||
| 41 | "$(VERSION)" | ||||||||||||
| 42 | "$(VERSION_SYM)" | ||||||||||||
| 43 | "$(VERSION_FROM)" | ||||||||||||
| 44 | "$(LICENSE)" | ||||||||||||
| 45 | "$(AUTHOR)" | ||||||||||||
| 46 | "$(TO_INST_PM)" | ||||||||||||
| 47 | "$(EXE_FILES)" | ||||||||||||
| 48 | "$(DIST_DEFAULT_TARGET)" | ||||||||||||
| 49 | "$(SUFFIX)" | ||||||||||||
| 50 | "$(ABSTRACT_FROM)" | ||||||||||||
| 51 | "$(PUBLISH_CONFIG)" | ||||||||||||
| 52 | ]), | ||||||||||||
| 53 | |||||||||||||
| 54 | 2 | ▶ | %{do($local_fn) || {}}, | ||||||||||
|
Condition50%1/2
do $local_fn || {}
MC/DC0%0/1
do $local_fn || {}
do $local_fn
Truth table50%1/2
A
A= do $local_fn
| |||||||||||||
| 55 | 2 | ▶ | %{do(glob(sprintf('~/.%s.local', __PACKAGE__))) || {}} | ||||||||||
|
Condition50%1/2
do (glob('~/.ASPEER::MakeMaker::Markdown::Publish::MM::Constant.local')) || {}
MC/DC0%0/1
do (glob('~/.ASPEER::MakeMaker::Markdown::Publish::MM::Constant.local')) || {}
do (glob('~/.ASPEER::MakeMaker::Markdown::Publish::MM::Constant.local'))
Truth table50%1/2
A
A= do (glob('~/.ASPEER::MakeMaker::Markdown::Publish::MM::Constant.local'))
| |||||||||||||
| 56 | ); | ||||||||||||
| 57 | |||||||||||||
| 58 | 2 | require Exporter; | |||||||||||
| 59 | 2 | @ISA=qw(Exporter); | |||||||||||
| 60 | { | ||||||||||||
| 61 | 2 | ▶ | no warnings qw(once); | ||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||
| 62 | 2 | foreach (keys(%Constant)) {${$_}=$Constant{$_}} | |||||||||||
| 63 | } | ||||||||||||
| 64 | 2 | @EXPORT=map {'$'.$_} keys(%Constant); | |||||||||||
| 65 | 2 | @EXPORT_OK=@EXPORT; | |||||||||||
| 66 | 2 | %EXPORT_TAGS=(all => [@EXPORT_OK]); | |||||||||||
| 67 | |||||||||||||
| 68 | 2 | 1; | |||||||||||
| 69 | |||||||||||||
| 70 | __END__ | ||||||||||||