Eirotic.pm

filter: Statementstmt 100% 36 / 36 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 44 / 44 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Eirotic/514.pm ↑ Summary
1 package Eirotic;
2  
3 #ABSTRACT: Eirotic - a module to load and use Perl my may
4  
5 =encoding utf8
6 =head1 NAME
7  
8 Eirotic - a module to load and use Perl my may
9  
10 =head1 VERSION
11  
12 0.3
13  
14 =cut
15 4 our $VERSION = '0.3';
16  
17 =head1 SYNOPSIS
18  
19 writting
20  
21 use Eirotic;
22  
23 replaces this boilerplate
24  
25 use 5.20.0;
26 use strict;
27 use warnings qw( FATAL all );
28 use experimental 'signatures';
29 use Perlude;
30 use curry;
31 use Path::Tiny;
32 require YAML;
33  
34 =head1 CHANGES
35  
36 =head1 v0.1 (2015)
37  
38 =over 4
39  
40 =item *
41  
42 C<Eirotic> moved to C<Eirotic::514>.
43  
44 =item *
45  
46 C<IO::All> replaced by C<Path::Tiny>.
47  
48 =item *
49  
50 L<https://metacpan.org/pod/Method::Signatures> replaced by CORE experimental ones.
51  
52 =back
53  
54 =head1 YET EXPERIMENTING
55  
56 =head2 Unicode everywhere
57  
58 is utf8::all a good idea ? use C<use> instead of my own import?
59  
60 =head2 List::AllUtils ?
61  
62 temptation is strong but i don't want to conflict with perlude, even in the
63 user's brain.
64  
65 what about the idea from L<https://metacpan.org/author/BOOK> (used in Perlude): use a very short NS. like
66 C<A> for C<Array> and C<S> for stream?
67  
68 =head2 About autodie and fatal warnings
69  
70 seems to be nice but maybe i should read L<http://blogs.perl.org/users/peter_rabbitson/2014/01/fatal-warnings-are-a-ticking-time-bomb-via-chromatic.html>
71  
72 =head1 AUTHOR
73  
74 Marc Chantreux <marcc@cpan.org>
75  
76 =head1 BUGS
77
78 Please report any bugs or feature requests to C<bug-eirotic at rt.cpan.org>, or through
79 the web interface at
80 L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Eirotic>. I will be
81 notified, and then you'll automatically be notified of progress on your bug as
82 I make changes.
83
84 =head1 SUPPORT
85
86 You can find documentation for this module with the perldoc command.
87
88 perldoc Eirotic
89
90 You can also look for information at:
91
92 =over 4
93
94 =item * RT: CPAN's request tracker
95
96 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Eirotic>
97
98 =item * AnnoCPAN: Annotated CPAN documentation
99
100 L<http://annocpan.org/dist/Eirotic>
101
102 =item * CPAN Ratings
103
104 L<http://cpanratings.perl.org/d/Eirotic>
105
106 =item * CPAN
107
108 L<https://metacpan.org/release/eirotic>
109
110 =back
111
112 =head1 COPYRIGHT
113
114 Copyright 2013-2015 Marc Chantreux (eiro).
115  
116 =head1 LICENSE
117
118 This program is free software; you can redistribute it and/or modify it
119 under the terms of either: the GNU General Public License as published
120 by the Free Software Foundation; or the Artistic License.
121
122 See L<http://dev.perl.org/licenses/> for more information.
123  
124 =cut
125  
126 4 ▶use strict ();
Subroutine BEGIN: called CC=1 SCAR=0.0
127 4 ▶use warnings ();
Subroutine BEGIN: called CC=1 SCAR=0.0
128 4 ▶use feature ();
Subroutine BEGIN: called CC=1 SCAR=0.0
129 4 ▶use autodie ();
Subroutine BEGIN: called CC=1 SCAR=0.0
130 4 require Perlude;
131 4 require YAML;
132 4 ▶use curry;
Subroutine BEGIN: called CC=1 SCAR=0.0
133 4 require Path::Tiny;
134 4 require Import::Into;
135  
136 3 ▶sub import {
Subroutine import: called CC=1 SCAR=0.0
137  
138 3 my ( $what ) = pop;
139 3 my ( $caller ) = caller;
140  
141 3 feature->import(':5.20'); # use 5.20.0;
142 3 strict->import; # use strict;
143 3 warnings->import; # use warnings qw( FATAL all );
144 # warnings->import(qw( FATAL all )); # use warnings qw( FATAL all );
145  
146 #use experimental 'signatures';
147  
148 3 feature->import('signatures');
149 3 warnings->unimport("experimental::signatures");
150  
151 4 ▶ use Perlude;
Subroutine BEGIN: called CC=1 SCAR=0.0
152 4 ▶ use Path::Tiny;
Subroutine BEGIN: called CC=1 SCAR=0.0
153
154 #return unless $what eq "-full";
155 3 Perlude->import::into($caller);
156 3 Path::Tiny->import::into($caller);
157  
158 }
159  
160 4 1;
161  
« Eirotic/514.pm ↑ Summary