Arthas-Defaults
view release on metacpan or search on metacpan
2.0.2
- fix POD error
2.0.1
- little bugfixes
- fix email address
- fix dependencies
2.0.0
- added Carp and Try::Tiny
- wrote documentation
- wrote some tests
configure_requires:
ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 6.025, CPAN::Meta::Converter version 2.150010'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
name: Arthas-Defaults
requires:
Try::Tiny: '0'
perl: v5.14.2
version: '0.77'
version: 5.0.2
x_generated_by_perl: v5.36.0
x_serialization_backend: 'YAML::Tiny version 1.73'
x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
Makefile.PL view on Meta::CPAN
"ABSTRACT" => "Defaults for coding - Do not use if you're not Arthas",
"AUTHOR" => "Michele Beltrame <mb\@italpro.net>",
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => 0
},
"DISTNAME" => "Arthas-Defaults",
"LICENSE" => "perl",
"MIN_PERL_VERSION" => "5.014002",
"NAME" => "Arthas::Defaults",
"PREREQ_PM" => {
"Try::Tiny" => 0,
"version" => "0.77"
},
"TEST_REQUIRES" => {
"Test::Exception" => 0
},
"VERSION" => "5.0.2",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
"Test::Exception" => 0,
"Try::Tiny" => 0,
"version" => "0.77"
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
name = Arthas-Defaults
author = Michele Beltrame <mb@italpro.net>
abstract= Defaults for coding - Do not use if you're not Arthas
license = Perl_5
copyright_holder = Michele Beltrame
[@Basic]
[Prereqs]
perl = 5.14.2
Try::Tiny = 0
version = 0.77
[Prereqs / TestRequires]
Test::Exception = 0
lib/Arthas/Defaults.pm view on Meta::CPAN
package Arthas::Defaults;
use v5.14;
use warnings FATAL => 'all';
no warnings 'uninitialized';
use utf8;
use feature();
use version;
use Carp qw/carp croak confess cluck/;
use Try::Tiny;
our $VERSION = qv("v5.2.0");
require Exporter;
our @ISA = ('Exporter');
our @EXPORT = qw/
carp croak confess cluck
try catch finally
/;
lib/Arthas/Defaults.pm view on Meta::CPAN
=head1 DESCRIPTION
It's like saying:
use v5.14;
use utf8;
use warnings;
no warnings 'uninitialized';
use Carp qw/carp croak confess cluck/;
use Try::Tiny;
Might change without notice, at any time. DO NOT USE!
=over
=item C<use v5.14>
This is actually C<use feature ':5.14'>. It imports some perl 5.10 -> 5.14
semantics, such as strict, Unicode strings, ... See
L<feature> documentation and source code for more information.
lib/Arthas/Defaults.pm view on Meta::CPAN
say 'Maya!';
}
which is boring enough to justify suppressing these warnings.
=item C<use Carp qw/carp croak confess cluck/>
These functions are very useful to show error details better
than that of C<die()> and C<warn()>.
=item C<use Try::Tiny>
L<Try::Tiny> provides minimal C<try/catch/finally> statements,
which make for interesting sugar and a few nice features over
C<eval>.
=back
=head1 AUTHOR
Michele Beltrame, C<arthas@cpan.org>
=head1 LICENSE
lib/Arthas/Defaults/520.pm view on Meta::CPAN
use v5.20;
use warnings FATAL => 'all';
no warnings 'uninitialized';
use utf8;
use feature();
use experimental 'signatures';
use experimental 'postderef';
use version;
use Carp qw/carp croak confess cluck/;
use Try::Tiny;
require Exporter;
our @ISA = ('Exporter');
our @EXPORT = qw/
carp croak confess cluck
try catch finally
/;
sub import {
feature->import(':5.20');
lib/Arthas/Defaults/520.pm view on Meta::CPAN
It's like saying:
use v5.20;
use utf8;
use warnings;
no warnings 'uninitialized';
use experimental 'signatures';
use experimental 'postderef';
use Carp qw/carp croak confess cluck/;
use Try::Tiny;
Might change without notice, at any time. DO NOT USE!
=over
=item C<use v5.20>
This is actually C<use feature ':5.20'>. It imports some perl 5.10 -E<gt> 5.20
semantics, such as strict, given-when syntax, Unicode strings, ... See
L<feature> documentation and source code for more information.
lib/Arthas/Defaults/520.pm view on Meta::CPAN
than that of C<die()> and C<warn()>.
=item C<use experimental 'signatures'>
We waited 20 years to get these, so it's time use them.
=item C<use experimental 'postderef'>
Even though I still have some doubts on this, it seems a nice feature.
=item C<use Try::Tiny>
L<Try::Tiny> provides minimal C<try/catch/finally> statements,
which make for interesting sugar and a few nice features over
C<eval>.
=back
=head1 AUTHOR
Michele Beltrame, C<arthas@cpan.org>
=head1 LICENSE
lib/Arthas/Defaults/536.pm view on Meta::CPAN
=item C<use experimental 'defer'>
Defer blocks seem to be very useful.
=back
=head1 WARNING
The 5.36 version of this module is not compatible with the previous one,
bcause it replaces L<Try::Tiny> with Perl's own new Try/Catch syntax,
and discards the obsoleted C<postderef> syntax.
=head1 AUTHOR
Michele Beltrame, C<arthas@cpan.org>
=head1 LICENSE
This library is free software. You can redistribute it and/or modify
it under the same terms as perl itself.
( run in 1.001 second using v1.01-cache-2.11-cpan-05444aca049 )