| 1 | # | ||
| 2 | # This file is part of WWW-DaysOfWonder-Memoir44 | ||
| 3 | # | ||
| 4 | # This software is copyright (c) 2009 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 | 5 | ▶ | use 5.010; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 5 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 5 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | package WWW::DaysOfWonder::Memoir44::Utils; | ||
| 14 | # ABSTRACT: various subs and constants used in the dist | ||
| 15 | 5 | $WWW::DaysOfWonder::Memoir44::Utils::VERSION = '3.000'; | |
| 16 | 5 | ▶ | use Encode; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 5 | ▶ | use Exporter::Lite; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 5 | ▶ | use File::HomeDir::PathClass; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | 5 | ▶ | use Locale::TextDomain 'WWW-DaysOfWonder-Memoir44'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 20 | |||
| 21 | 5 | our @EXPORT_OK = qw{ $DATADIR T }; | |
| 22 | |||
| 23 | |||
| 24 | # -- public vars | ||
| 25 | |||
| 26 | 5 | our $DATADIR = File::HomeDir::PathClass->my_dist_data( | |
| 27 | 'WWW-DaysOfWonder-Memoir44', { create => 1 } ); | ||
| 28 | |||
| 29 | |||
| 30 | # -- public subs | ||
| 31 | |||
| 32 | |||
| 33 | 0 | ▶ | sub T { return decode('utf8', __($_[0])); } |
|
Subroutine
T: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 34 | |||
| 35 | |||
| 36 | 5 | 1; | |
| 37 | |||
| 38 | __END__ | ||