File Coverage

blib/lib/Eirotic.pm
Criterion Covered Total %
statement 25 25 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod n/a
total 32 32 100.0


line stmt bran cond sub pod time code
1             # ABSTRACT: use perl *my* way
2              
3             =head1 SYNOPSIS
4              
5             just
6              
7             use Eirotic;
8              
9             to have
10              
11             use strict;
12             use warnings qw< FATAL all >;
13             use 5.14.0; # because given is fixed there
14             use Perlude;
15             use Method::Signatures;
16             use File::Slurp qw< :all >;
17              
18             =head1 MORE to come
19              
20             is utf8::all a good idea ? use C<use> instead of my own import?
21              
22             =head1 please help to make my mind up
23              
24             =head2 About signatures
25              
26             I have to read again those docs but if someone can explain the motivation
27             behind Kavorka? (i never tested it as i'm perfectly happy about
28             Method::Signatures).
29              
30             https://metacpan.org/pod/Method::Signatures
31             https://metacpan.org/pod/Method::Signatures#THANKS
32             https://metacpan.org/pod/Function::Parameters
33             https://metacpan.org/pod/MooseX::Method::Signatures
34             https://metacpan.org/pod/signatures
35             https://metacpan.org/pod/Attribute::Signature
36             https://metacpan.org/pod/Kavorka
37              
38             =head2 About IO::All
39              
40             Should i import IO::All and how to import operator overloading? my guess is i
41             just have to import C<&io> but i never tested it.
42              
43             =head2 About List::AllUtils
44              
45             temptation is strong but i don't want to conflict with perlude, even in the
46             user's brain.
47              
48             what about the idea from C<Book> (used in Perlude): use a very short NS. like
49             C<A> for C<Array> and C<S> for stream?
50              
51             =head2 About Mouse and Moo
52              
53             Why so serioo? Mouse seems to be faster even in PP. is this about memory consumption ?
54              
55             =head2 About autodie and fatal warnings
56              
57             seems to be nice but maybe i should read
58             U<http://blogs.perl.org/users/peter_rabbitson/2014/01/fatal-warnings-are-a-ticking-time-bomb-via-chromatic.html>
59              
60             =head1 CREDITS
61              
62             Author: Marc Chantreux <marcc@cpan.org>
63              
64             =cut
65              
66             package Eirotic;
67 1     1   463 use base 'Exporter';
  1         2  
  1         109  
68 1     1   6 use feature ':5.14';
  1         2  
  1         178  
69 1     1   5 use strict ();
  1         4  
  1         46  
70 1     1   5 use warnings ();
  1         2  
  1         50  
71             # require List::AllUtils;
72             require Method::Signatures;
73             require Perlude;
74             require File::Slurp;
75 1     1   762 use YAML;
  1         11668  
  1         66  
76             # use IO::All;
77 1     1   1157 use Import::Into;
  1         3523  
  1         142  
78             our $VERSION = '0.0';
79              
80             sub import {
81 1     1   10 my $caller = caller;
82              
83 1         15 strict->import;
84             # warnings->import(FATAL => 'all');
85 1         17 warnings->import;
86 1         96 feature->import( ':5.14' );
87              
88 1         10 Method::Signatures -> import( {into => $caller} );
89 1         491 File::Slurp -> import::into($caller, ':all');
90 1         372 Perlude -> import::into($caller);
91             # List::AllUtils -> import::into($caller, qw< first any all >);
92              
93             # IO::All->import::intro($caller);
94             }
95              
96             1;
97