perl-Acme-CPANModules-Assert - Assertion

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package filename perl-Acme-CPANModules-Assert-0.001-alt1.noarch.rpm
Package name perl-Acme-CPANModules-Assert
Package version 0.001
Package release alt1
Package architecture noarch
Package type rpm
Category Development/Perl
Homepage -
License -
Maintainer -
Download size 23.91 KB
Installed size 23.91 KB
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;
where `DEBUG' is a constant subroutine, declared using:
use constant DEBUG => 0;
sub DEBUG() { 0 }
The perl compiler will optimize away and remove the code entirely when `DEBUG'
is false. But having to add `if DEBUG' to each assertion is annoying and
Nowadays, you have several alternatives to have a true, C-like assertions. One
technique is using the Devel::Declare manpage (e.g. the PerlX::Assert manpage). Another technique is
using the B::CallChecker manpage (e.g. the Assert::Conditional manpage).


Package Version Architecture Repository
perl-Acme-CPANModules-Assert - - -


Name Value
/usr/share/perl5 -
rpmlib(PayloadIsLzma) -


Name Value
perl(Acme/CPANModules/ = 0.001
perl-Acme-CPANModules-Assert = 0.001-alt1


Type URL
Binary Package perl-Acme-CPANModules-Assert-0.001-alt1.noarch.rpm
Source Package perl-Acme-CPANModules-Assert-0.001-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Acme-CPANModules-Assert rpm package:
    # sudo apt-get install perl-Acme-CPANModules-Assert



See Also

Package Description
perl-Acme-CPANModules-BloomFilters-0.001-alt1.noarch.rpm Bloom filter modules on CPAN
perl-Acme-CPANModules-CLI-Sort-0.001-alt1.noarch.rpm Various CLIs to perform sorting
perl-Acme-CPANModules-CLI-Wrapper-UnixCommand-0.001-alt1.noarch.rpm Various CLIs that wrap (popular) Unix commands
perl-Acme-CPANModules-CLIWithUndo-0.001-alt1.noarch.rpm CLI utilities with undo feature
perl-Acme-CPANModules-COLOR-0.001-alt1.noarch.rpm Modules that follow the COLOR convention
perl-Acme-CPANModules-CheckingModuleInstalledLoadable-0.001-alt1.noarch.rpm Checking if a module is installed or loadable
perl-Acme-CPANModules-ColorEnv-0.001-alt1.noarch.rpm Modules that observe environment variable (other than NO_COLOR/COLOR) to disable/enable colored out
perl-Acme-CPANModules-ConvertingFromRegex-0.001-alt1.noarch.rpm Convert a regular expression to various stuffs
perl-Acme-CPANModules-ConvertingToRegex-0.001-alt1.noarch.rpm Convert various stuffs to regular expression
perl-Acme-CPANModules-CryptoExchange-API-0.003-alt1.noarch.rpm Modules that interface to cryptocurrency exchanges
perl-Acme-CPANModules-CustomCPAN-0.001-alt1.noarch.rpm Creating your own CPAN-like repository
perl-Acme-CPANModules-DataStructureWalker-0.002-alt1.noarch.rpm Modules that traverse your data structure
perl-Acme-CPANModules-Desktop-0.002-alt1.noarch.rpm Modules related to GUI desktop environment
perl-Acme-CPANModules-DesktopModules-0.001-alt1.noarch.rpm Modules related to GUI desktop environment
perl-Acme-CPANModules-FooThis-0.001-alt1.noarch.rpm Export your directory over various channels