| 1 | package App::GitFind::Base; | ||
| 2 | |||
| 3 | 1 | ▶ | use 5.010; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 1 | our $VERSION = '0.000001'; | |
| 8 | |||
| 9 | 1 | ▶ | use parent 'Exporter'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 1 | ▶ | use vars::i '$TRACE' => 0; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 1 | ▶ | use vars::i '@EXPORT' => qw(*TRACE true false); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 1 | ▶ | use Import::Into; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 1 | ▶ | use constant true => !!1; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 1 | ▶ | use constant false => !!0; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | # Re-exports | ||
| 19 | 1 | ▶ | use Carp (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | 1 | ▶ | use Data::Dumper::Compact (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 21 | |||
| 22 | # === Documentation === {{{1 | ||
| 23 | |||
| 24 | =head1 NAME | ||
| 25 | |||
| 26 | App::GitFind::Base - base definitions for App::GitFind | ||
| 27 | |||
| 28 | =head1 SYNOPSIS | ||
| 29 | |||
| 30 | use App::GitFind::Base; | ||
| 31 | |||
| 32 | Imports L<Carp>, L<Data::Dumper::Compact> (with the C<ddc> option), and | ||
| 33 | local symbols C<true>, C<false>, and C<$TRACE>. | ||
| 34 | |||
| 35 | =head1 VARIABLES | ||
| 36 | |||
| 37 | =head2 $TRACE | ||
| 38 | |||
| 39 | Set to a positive integer to enable tracing. | ||
| 40 | |||
| 41 | =head1 FUNCTIONS | ||
| 42 | |||
| 43 | =cut | ||
| 44 | |||
| 45 | # }}}1 | ||
| 46 | |||
| 47 | =head2 import | ||
| 48 | |||
| 49 | See L</SYNOPSIS> | ||
| 50 | |||
| 51 | =cut | ||
| 52 | |||
| 53 | sub import { | ||
| 54 | 2 | ▶ | my $target = caller; |
|
Subroutine
import: called CC=1 SCAR=0.0
| |||
| 55 | 2 | $_[0]->export_to_level(1, @_); | |
| 56 | 2 | Carp->import::into($target, qw(carp croak confess cluck)); | |
| 57 | 2 | Data::Dumper::Compact->import::into($target, 'ddc'); | |
| 58 | } #import() | ||
| 59 | |||
| 60 | 1 | 1; | |
| 61 | __END__ | ||