| 1 | # | ||||||||||
| 2 | # This file is part of App-Magpie | ||||||||||
| 3 | # | ||||||||||
| 4 | # This software is copyright (c) 2011 by Jerome Quelin. | ||||||||||
| 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 | 3 | ▶ | use 5.010; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | |||||||||||
| 13 | package App::Magpie::Constants; | ||||||||||
| 14 | # ABSTRACT: Various constants | ||||||||||
| 15 | 3 | $App::Magpie::Constants::VERSION = '2.010'; | |||||||||
| 16 | 3 | ▶ | use Exporter::Lite; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | 3 | ▶ | use File::ShareDir qw{ dist_dir }; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | 3 | ▶ | use Path::Tiny; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 19 | |||||||||||
| 20 | 3 | our @EXPORT_OK = qw{ $SHAREDIR }; | |||||||||
| 21 | |||||||||||
| 22 | 3 | ▶ | our $SHAREDIR = -e path("dist.ini") | ||||||||
|
Branch: 1 branch
| |||||||||||
| 23 | ? path("share") | ||||||||||
| 24 | : path( dist_dir("App-Magpie") ); | ||||||||||
| 25 | |||||||||||
| 26 | |||||||||||
| 27 | 3 | 1; | |||||||||
| 28 | |||||||||||
| 29 | __END__ | ||||||||||