Filewatcher File Search File Search
Catalog
Content Search
» » » » »

Exception-Died-0.05.tar.gz

Homepage:-
Package version:-
Architecture:-
Distribution:Perl-CPAN
Filename:Exception-Died-0.05.tar.gz

/Exception-Died-0.05/README

NAME
    Exception::Died - Convert simple die into real exception object

SYNOPSIS
      use Exception::Died;

      use warnings FATAL => 'all';
      eval { open $f, "x", "bad_open_mode" };
      Exception::Died->throw( message=>"cannot open" ) if $@;

      eval { die "Bum!\n" };
      if ($@) {
        my $e = Exception::Died->catch;
        $e->throw;
      };

      # Can replace die hook gl
more»

/Exception-Died-0.05/Changes

------------------------------------------------------------------------
0.05 | Piotr Roszatycki <dexter@debian.org> | 2009-01-01

Changes:

* Handles Carp output correctly.
* Method "_collect_system_data" recovers attribute "eval_error" from variable
  "$@" if it is an Exception::Died object.
* Attribute "eval_error" is undefined if eval error was an empty string.
* Requires constant::boolean.
* 
more»

/Exception-Died-0.05/xt/copyright.t

#!/usr/bin/env perl

use strict;
use warnings;

our $VERSION = '0.999_001';

use File::Find;
use File::Slurp;
use Readonly;

use Test::More qw(no_plan); ## no critic (Bangs::ProhibitNoPlan)


Readonly my $LOCALTIME_YEAR_FIELD_NUMBER => 5;
Readonly my $LOCALTIME_YEAR_OFFSET       => 1900;


my $this_year =
    (localtime)[$LOCALTIME_YEAR_FIELD_NUMBER] + $LOCALTIME_YEAR_OFFSET;
my $copyrights_found 
more»

Browse inside Exception-Died-0.05.tar.gz

         [DIR]Exception-Died-0.05/ (11)

Download Exception-Died-0.05.tar.gz

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2016 FileWatcher.com