| 1 | package FindApp::Vars; | ||
| 2 | |||
| 3 | use v5.10; | ||
| 4 | use strict; | ||
| 5 | use warnings; | ||
| 6 | |||
| 7 | use Exporter qw(import); | ||
| 8 | |||
| 9 | BEGIN { | ||
| 10 | # Can cause warnings in buggy core Env.pm module otherwise: | ||
| 11 | $ENV{MANPATH} //= q(); | ||
| 12 | } | ||
| 13 | |||
| 14 | our $VERSION = v1.0; | ||
| 15 | |||
| 16 | my @Internals; BEGIN { | ||
| 17 | @Internals = qw( | ||
| 18 | $Root | ||
| 19 | $Bin @Bin | ||
| 20 | $Lib @Lib | ||
| 21 | $Man @Man | ||
| 22 | $Debugging | ||
| 23 | $Tracing | ||
| 24 | ); | ||
| 25 | } | ||
| 26 | |||
| 27 | my @Externals; BEGIN { | ||
| 28 | @Externals = qw( | ||
| 29 | $FINDAPP_DEBUG | ||
| 30 | $FINDAPP_DEBUG_SHORTEN | ||
| 31 | $FINDAPP_TRACE | ||
| 32 | |||
| 33 | @PATH | ||
| 34 | $MANPATH | ||
| 35 | @MANPATH | ||
| 36 | |||
| 37 | $GIT_DIR | ||
| 38 | $APP_ROOT | ||
| 39 | ); | ||
| 40 | } | ||
| 41 | |||
| 42 | use vars @Internals; | ||
| 43 | use Env @Externals; | ||
| 44 | |||
| 45 | our @EXPORT = (@Internals, @Externals); | ||
| 46 | our @EXPORT_OK = @EXPORT; | ||
| 47 | our %EXPORT_TAGS = ( | ||
| 48 | all => \@EXPORT_OK, | ||
| 49 | app => \@Internals, | ||
| 50 | env => \@Externals, | ||
| 51 | ); | ||
| 52 | |||
| 53 | $Debugging = $FINDAPP_DEBUG if defined $FINDAPP_DEBUG && !defined $Debugging; | ||
| 54 | $Tracing = $FINDAPP_TRACE if defined $FINDAPP_TRACE && !defined $Tracing; | ||
| 55 | |||
| 56 | 1; | ||
| 57 | |||
| 58 | =encoding utf8 | ||
| 59 | |||
| 60 | =head1 NAME | ||
| 61 | |||
| 62 | FindApp::Vars - FIXME | ||
| 63 | |||
| 64 | =head1 SYNOPSIS | ||
| 65 | |||
| 66 | use FindApp::Vars; | ||
| 67 | |||
| 68 | =head1 DESCRIPTION | ||
| 69 | |||
| 70 | =head2 Public Methods | ||
| 71 | |||
| 72 | =over | ||
| 73 | |||
| 74 | =item FIXME | ||
| 75 | |||
| 76 | =back | ||
| 77 | |||
| 78 | =head2 Exports | ||
| 79 | |||
| 80 | =over | ||
| 81 | |||
| 82 | =item FIXME | ||
| 83 | |||
| 84 | =back | ||
| 85 | |||
| 86 | =head1 EXAMPLES | ||
| 87 | |||
| 88 | =head1 ENVIRONMENT | ||
| 89 | |||
| 90 | =head1 SEE ALSO | ||
| 91 | |||
| 92 | =over | ||
| 93 | |||
| 94 | =item L<FindApp> | ||
| 95 | |||
| 96 | =back | ||
| 97 | |||
| 98 | =head1 CAVEATS AND PROVISOS | ||
| 99 | |||
| 100 | =head1 BUGS AND LIMITATIONS | ||
| 101 | |||
| 102 | =head1 HISTORY | ||
| 103 | |||
| 104 | =head1 AUTHOR | ||
| 105 | |||
| 106 | Tom Christiansen << <tchrist@perl.com> >> | ||
| 107 | |||
| 108 | =head1 LICENCE AND COPYRIGHT | ||
| 109 | |||
| 110 | Copyright (c) 2016, Tom Christiansen C<< <tchrist@perl.com> >>. | ||
| 111 | All Rights Reserved. | ||
| 112 | |||
| 113 | This module is free software; you can redistribute it and/or | ||
| 114 | modify it under the same terms as Perl itself. See L<perlartistic>. | ||
| 115 | |||
| 116 | =cut | ||
| 117 |