autodie - Replace functions with ones that succeed or die with lexical scope River stage four • 441 direct dependents • 1994 total dependents

bIlujDI' yIchegh()Qo'; yIHegh()! It is better to die() than to return() in failure. -- Klingon programming proverb. The "autodie" pragma provides a convenient way to replace functions that normally return false on failure with equivalents that throw ...

TODDR/autodie-2.34 - 22 Jan 2021 17:05:24 UTC

autodie::skip - Skip a package when throwing autodie exceptions River stage four • 441 direct dependents • 1994 total dependents

This dummy class exists to signal that the class inheriting it should be skipped when reporting exceptions from autodie. This is useful for utility classes like Path::Tiny that wish to report the location of where they were called on failure. If your...

TODDR/autodie-2.34 - 22 Jan 2021 17:05:24 UTC

autodie::Util - Internal Utility subroutines for autodie and Fatal River stage four • 441 direct dependents • 1994 total dependents

Interal Utilities for autodie and Fatal! This module is not a part of autodie's public API. This module contains utility subroutines for abstracting away the underlying magic of autodie and (ab)uses of "%^H" to call subs at the end of a (compile-time...

TODDR/autodie-2.34 - 22 Jan 2021 17:05:24 UTC

autodie::hints - Provide hints about user subroutines to autodie River stage four • 441 direct dependents • 1994 total dependents

Introduction The autodie pragma is very smart when it comes to working with Perl's built-in functions. The behaviour for these functions are fixed, and "autodie" knows exactly how they try to signal failure. But what about user-defined subroutines fr...

TODDR/autodie-2.34 - 22 Jan 2021 17:05:24 UTC

autodie::exception - Exceptions from autodying functions. River stage four • 441 direct dependents • 1994 total dependents

When an autodie enabled function fails, it generates an "autodie::exception" object. This can be interrogated to determine further information about the error that occurred. This document is broken into two sections; those methods that are most usefu...

TODDR/autodie-2.34 - 22 Jan 2021 17:05:24 UTC

autodie::variables - Safe user and group ID variables River stage zero No dependents

This module overrides the magic on the user and group ID variables ($<, $>, $(, $)) to throw errors when assignment to them fails....

LEONT/autodie-variables-0.005 - 26 Dec 2012 23:37:32 UTC

autodie::Scope::Guard - Wrapper class for calling subs at end of scope River stage four • 441 direct dependents • 1994 total dependents

This class is used to bless perl subs so that they are invoked when they are destroyed. This is mostly useful for ensuring the code is invoked at end of scope. This module is not a part of autodie's public API. This module is directly inspired by cho...

TODDR/autodie-2.34 - 22 Jan 2021 17:05:24 UTC

autodie::exception::system - Exceptions from autodying system(). River stage four • 441 direct dependents • 1994 total dependents

This is a autodie::exception class for failures from the "system" command. Presently there is no way to interrogate an "autodie::exception::system" object for the command, exit status, and other information you'd expect such an object to hold. The in...

TODDR/autodie-2.34 - 22 Jan 2021 17:05:24 UTC

autodie::Scope::GuardStack - Hook stack for managing scopes via %^H River stage four • 441 direct dependents • 1994 total dependents

This class is a stack of hooks to be called in the right order as scopes go away. The stack is only useful when inserted into "%^H" and will pop hooks as their "scope" is popped. This is useful for uninstalling or reinstalling subs in a namespace as ...

TODDR/autodie-2.34 - 22 Jan 2021 17:05:24 UTC

9 results (0.022 seconds)