Nicholas Melnick > Acme-Presume-1.0 > Acme::Presume

Download:
Acme-Presume-1.0.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  1
View/Report Bugs
Module Version: 1   Source  

NAME ^

Acme::Presume - Presume that the block of code should never see the light of day.

DESCRIPTION ^

Presume will allow one to execute a block of code, without the burden of strict variable checking, seeing warnings, or worrying about failure. Code will execute perfectly, within presume, every time.

There isn't one good reason this module should exist. Yet, here we are.

pre-sume (v)

1. suppose that something is the case on the basis of probability.

2. be audacious enough to do something.

USAGE ^

use Acme::Presume qw(presume);

presume sub { die 'Oh no!'; };

PUBLIC METHODS ^

presume( BLOCK )

Execute this block under eval, without strict, and without warnings. Will return the end value of the block, but swallow any exceptions, warnings, or failure.

LICENSE ^

Copyright 2014, Nicholas Melnick. This library is free software; you may redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: