Name : perl-autodie
| |
Version : 2.360.0
| Vendor : Mageia_Org
|
Release : 1.mga9
| Date : 2023-02-03 20:54:13
|
Group : Development/Perl
| Source RPM : perl-autodie-2.360.0-1.mga9.src.rpm
|
Size : 0.21 MB
| |
Packager : tv < tv>
| |
Summary : Lexically have functions succeed or die
|
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 perlfunc and perlvar 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 overrideable 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
|
RPM found in directory: /vol/rzm3/linux-mageia/distrib/9/armv7hl/media/core/release |