- Name: perl-autodie
- Version: 2.100.0
- Release: 1mdv2010.1
- Epoch:
- Group: Development/Perl
- License: GPL or Artistic
- Url: http://search.cpan.org/dist/autodie
- Summary: Lexically have functions succeed or die
- Architecture: noarch
- Size: 79329
- Distribution: Mandriva Linux
- Vendor: Mandriva
- Packager: Jérôme Quelin <jquelin@mandriva.org>
Description:
'Fatal' provides a way to conveniently replace functions which normally
return a false value when they fail with equivalents which raise exceptions
if they are not successful. This lets you use these functions without
having to test their return values explicitly on each call. Exceptions can
be caught using 'eval{}'. See the perlfunc manpage and the perlvar manpage
for details.
The do-or-die equivalents are set up simply by calling Fatal's 'import'
routine, passing it the names of the functions to be replaced. You may wrap
both user-defined functions and overridable CORE operators (except 'exec',
'system', 'print', or any other built-in that cannot be expressed via
prototypes) in this way.
If the symbol ':void' appears in the import list, then functions named
later in that import list raise an exception only when these are called in
void context--that is, when their return values are ignored. For example
- BuildArch:
- ExcludeArch:
- ExclusiveArch:
- Cookie: klodia.mandriva.com 1267345362
- Buildhost: klodia.mandriva.com
Generated packages:
Other version of this rpm: