[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ITP: autodie -- Replace functions with ones that succeed or die with lexical scope



Package: wnpp
Severity: wishlist
Owner: "Jeremiah C. Foster" <jeremiah@jeremiahfoster.com>


* Package name    : libautodie-perl
  Version         : 1.997
  Upstream Author : Paul Jamieson Fenwick <pjf@perltraining.com.au>
* URL             : http://search.cpan.org/~pjf/autodie-1.997/lib/autodie.pm
* License         : GPL, ARTISTIC
  Programming Lang: Perl
Description : Replace functions with ones that succeed or die with lexical scope


The autodie pragma provides a convenient way to replace functions that normally return false on failure with equivalents that throw an exception on failure.

The autodie pragma has lexical scope, meaning that functions and subroutines altered with autodie will only change their behaviour until the end of the enclosing block, file, or eval.

If system is specified as an argument to autodie, then it uses IPC::System::Simple to do the heavy lifting. See the description of that module for more information.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)



Reply to: