Eirotic/514.pm untested

filter: Statementstmt 0.0% 0 / 36 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 10 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 47 CC 1 SCAR 6.9
CC
1
Cov
0%
import
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # ABSTRACT: use perl *my* way
2  
3 =head1 SYNOPSIS
4  
5 just
6  
7 use Eirotic::514;
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 L<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::514;
67 use base 'Exporter';
68 use feature ':5.14';
69 use strict ();
70 use warnings ();
71 # require List::AllUtils;
72 require Method::Signatures;
73 require Perlude;
74 require File::Slurp;
75 use YAML;
76 # use IO::All;
77 use Import::Into;
78 our $VERSION = '0.0';
79  
80 sub import {
81 my $caller = caller;
82  
83 strict->import;
84 # warnings->import(FATAL => 'all');
85 warnings->import;
86 feature->import( ':5.14' );
87  
88 Method::Signatures -> import( {into => $caller} );
89 File::Slurp -> import::into($caller, ':all');
90 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