Acme-CPANModules-Assert
view release on metacpan or search on metacpan
NAME
Acme::CPANModules::Assert - List of modules to do assertion
VERSION
This document describes version 0.002 of Acme::CPANModules::Assert (from
Perl distribution Acme-CPANModules-Assert), released on 2022-03-08.
DESCRIPTION
Assertion is a check statement that must evaluate to true or it will
abort program's execution. It is useful during development/debugging:
assert("there must be >3 arguments", sub { @args > 3 });
In production code, compilers ideally do not generate code for assertion
statements so they do not have any impact on runtime performance.
In the old days, you only have this alternative to do it in Perl:
assert(...) if DEBUG;
lib/Acme/CPANModules/Assert.pm view on Meta::CPAN
our $AUTHORITY = 'cpan:PERLANCAR'; # AUTHORITY
our $DATE = '2022-03-08'; # DATE
our $DIST = 'Acme-CPANModules-Assert'; # DIST
our $VERSION = '0.002'; # VERSION
our $LIST = {
summary => 'List of modules to do assertion',
description => <<'_',
Assertion is a check statement that must evaluate to true or it will abort
program's execution. It is useful during development/debugging:
assert("there must be >3 arguments", sub { @args > 3 });
In production code, compilers ideally do not generate code for assertion
statements so they do not have any impact on runtime performance.
In the old days, you only have this alternative to do it in Perl:
assert(...) if DEBUG;
lib/Acme/CPANModules/Assert.pm view on Meta::CPAN
Acme::CPANModules::Assert - List of modules to do assertion
=head1 VERSION
This document describes version 0.002 of Acme::CPANModules::Assert (from Perl distribution Acme-CPANModules-Assert), released on 2022-03-08.
=head1 DESCRIPTION
Assertion is a check statement that must evaluate to true or it will abort
program's execution. It is useful during development/debugging:
assert("there must be >3 arguments", sub { @args > 3 });
In production code, compilers ideally do not generate code for assertion
statements so they do not have any impact on runtime performance.
In the old days, you only have this alternative to do it in Perl:
assert(...) if DEBUG;
( run in 1.168 second using v1.01-cache-2.11-cpan-49f99fa48dc )