The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
Build.PL 340
CONTRIBUTING 0100
Changes 08
INSTALL 280
LICENSE 06
MANIFEST 1520
MANIFEST.SKIP 330
META.json 093
META.yml 1936
Makefile.PL 1670
README 5146
Todo 90
cpanfile 037
dist.ini 010
inc/Module/Build/WikiDoc.pm 620
lib/Exception/Class/TryCatch.pm 200220
lib/Exception/Class/TryCatch.pod 2860
perlcritic.rc 026
t/00-report-prereqs.t 0181
t/01_Exception_Class_TryCatch.t 9892
tidyall.ini 05
xt/author/00-compile.t 053
xt/author/critic.t 012
xt/author/pod-spell.t 023
xt/critic.t 150
xt/perlcriticrc 200
xt/pod-coverage.t 290
xt/pod-format.t 130
xt/release/distmeta.t 06
xt/release/minimum-version.t 08
xt/release/pod-coverage.t 07
xt/release/pod-syntax.t 06
xt/release/portability.t 012
xt/release/test-version.t 022
xt/spelling.t 210
xt/stopwords.txt 100
36 files changed (This is a version diff) 9591099
@@ -1,34 +0,0 @@
-# Copyright (c) 2008 by David Golden. All rights reserved.
-# Licensed under Apache License, Version 2.0 (the "License").
-# You may not use this file except in compliance with the License.
-# A copy of the License was distributed with this file or you may obtain a 
-# copy of the License from http://www.apache.org/licenses/LICENSE-2.0
-
-use 5.006;
-use strict;
-use warnings;
-use lib 'inc';
-eval "require Pod::WikiDoc";
-my $class = $@ ? "Module::Build" : "Module::Build::WikiDoc";
-eval "require $class";
-my $build = $class->new( 
-    module_name => 'Exception::Class::TryCatch',
-    dist_author => 'David Golden <dagolden@cpan.org>',
-    license => 'apache',
-    create_readme => 1,
-    create_makefile_pl  => 'traditional',
-    requires => {
-        'perl' => '5.005',
-        'Exception::Class' => 1.20,
-    },
-    build_requires => {
-        'Test::More' => 0.47,
-    },
-    meta_add            => { 
-        no_index => { 
-            directory => [ qw/ examples inc t /],
-        } 
-    },
-);
-$build->create_build_script;
-
@@ -0,0 +1,100 @@
+## HOW TO CONTRIBUTE
+
+Thank you for considering contributing to this distribution.  This file
+contains instructions that will help you work with the source code.
+
+The distribution is managed with Dist::Zilla.  This means than many of the
+usual files you might expect are not in the repository, but are generated at
+release time (e.g. Makefile.PL).
+
+Generally, **you do not need Dist::Zilla to contribute patches**.  You do need
+Dist::Zilla to create a tarball and/or install from the repository.  See below
+for guidance.
+
+### Getting dependencies
+
+See the included `cpanfile` file for a list of dependencies.  If you have
+App::cpanminus 1.6 or later installed, you can use `cpanm` to satisfy
+dependencies like this:
+
+    $ cpanm --installdeps .
+
+Otherwise, you can install Module::CPANfile 1.0002 or later and then satisfy
+dependencies with the regular `cpan` client and `cpanfile-dump`:
+
+    $ cpan `cpanfile-dump`
+
+### Running tests
+
+You can run tests directly using the `prove` tool:
+
+    $ prove -l
+    $ prove -lv t/some_test_file.t
+
+For most of my distributions, `prove` is entirely sufficient for you to test any
+patches you have. I use `prove` for 99% of my testing during development.
+
+### Code style and tidying
+
+Please try to match any existing coding style.  If there is a `.perltidyrc`
+file, please install Perl::Tidy and use perltidy before submitting patches.
+
+If there is a `tidyall.ini` file, you can also install Code::TidyAll and run
+`tidyall` on a file or `tidyall -a` to tidy all files.
+
+### Patching documentation
+
+Much of the documentation Pod is generated at release time.  Depending on the
+distribution, some of my documentation may be written in a Pod dialect called
+WikiDoc. (See Pod::WikiDoc on CPAN.)
+
+If you would like to submit a documentation edit, please limit yourself to the
+documentation you see.
+
+If you see typos or documentation issues in the generated docs, please
+email or open a bug ticket instead of patching.
+
+### Installing from the repository
+
+If you want to install directly from the repository, you need to have
+Dist::Zilla installed (see below).  If this is a burden to you, I welcome
+patches against a CPAN tarball instead of the repository.
+
+### Installing and using Dist::Zilla
+
+Dist::Zilla is a very powerful authoring tool, optimized for maintaining a
+large number of distributions with a high degree of automation, but it has a
+large dependency chain, a bit of a learning curve and requires a number of
+author-specific plugins.
+
+To install it from CPAN, I recommend one of the following approaches for
+the quickest installation:
+
+    # using CPAN.pm, but bypassing non-functional pod tests
+    $ cpan TAP::Harness::Restricted
+    $ PERL_MM_USE_DEFAULT=1 HARNESS_CLASS=TAP::Harness::Restricted cpan Dist::Zilla
+
+    # using cpanm, bypassing *all* tests
+    $ cpanm -n Dist::Zilla
+
+In either case, it's probably going to take about 10 minutes.  Go for a walk,
+go get a cup of your favorite beverage, take a bathroom break, or whatever.
+When you get back, Dist::Zilla should be ready for you.
+
+Then you need to install any plugins specific to this distribution:
+
+    $ cpan `dzil authordeps`
+    $ dzil authordeps | cpanm
+
+Once installed, here are some dzil commands you might try:
+
+    $ dzil build
+    $ dzil test
+    $ dzil xtest
+
+To install from the repository, use:
+
+    $ dzil install
+
+You can learn more about Dist::Zilla at http://dzil.org/
+
@@ -1,5 +1,13 @@
 Revision history for Perl module Exception::Class::TryCatch
 
+1.13      2014-02-26 19:22:39-05:00 America/New_York
+
+    [CHANGED]
+
+    - Updated distribution metadata, repo and bugtracker
+
+    - Distribution now managed with Dist::Zilla
+
 1.12 Mon Nov  3 17:12:19 EST 2008
 
     - Changed: if no exception was thrown, catch() returns an empty array
@@ -1,28 +0,0 @@
-# Copyright (c) 2008 by David Golden. All rights reserved.
-# Licensed under Apache License, Version 2.0 (the "License").
-# You may not use this file except in compliance with the License.
-# A copy of the License was distributed with this file or you may obtain a 
-# copy of the License from http://www.apache.org/licenses/LICENSE-2.0
-
-INSTALLATION 
-
-This distribution may be installed via one of the following
-methods:
-
-
-1. If Build.PL exists and Module::Build is installed:
-
-    perl Build.PL
-    perl Build
-    perl Build test
-    perl Build install
-
-2. If Makefile.PL exists:
-
-    perl Makefile.PL
-    make
-    make test
-    make install
-
-If you are on a Windows machine you should use 
-'nmake' or 'dmake' rather than 'make'.
@@ -1,3 +1,9 @@
+This software is Copyright (c) 2014 by David Golden.
+
+This is free software, licensed under:
+
+  The Apache License, Version 2.0, January 2004
+
                                  Apache License
                            Version 2.0, January 2004
                         http://www.apache.org/licenses/
@@ -1,20 +1,25 @@
-Build.PL
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.013.
+CONTRIBUTING
 Changes
-inc/Module/Build/WikiDoc.pm
-INSTALL
-lib/Exception/Class/TryCatch.pm
-lib/Exception/Class/TryCatch.pod
 LICENSE
 MANIFEST
-MANIFEST.SKIP
+META.json
+META.yml
+Makefile.PL
 README
+cpanfile
+dist.ini
+lib/Exception/Class/TryCatch.pm
+perlcritic.rc
+t/00-report-prereqs.t
 t/01_Exception_Class_TryCatch.t
-Todo
-xt/critic.t
-xt/perlcriticrc
-xt/pod-coverage.t
-xt/pod-format.t
-xt/spelling.t
-xt/stopwords.txt
-Makefile.PL
-META.yml
+tidyall.ini
+xt/author/00-compile.t
+xt/author/critic.t
+xt/author/pod-spell.t
+xt/release/distmeta.t
+xt/release/minimum-version.t
+xt/release/pod-coverage.t
+xt/release/pod-syntax.t
+xt/release/portability.t
+xt/release/test-version.t
@@ -1,33 +0,0 @@
-# Copyright (c) 2008 by David Golden. All rights reserved.
-# Licensed under Apache License, Version 2.0 (the "License").
-# You may not use this file except in compliance with the License.
-# A copy of the License was distributed with this file or you may obtain a 
-# copy of the License from http://www.apache.org/licenses/LICENSE-2.0
-
-# Version control files and dirs.
-\bRCS\b
-\bCVS\b
-,v$
-.svn/
-^.git
-
-# Generated by Perl module toolchain
-^MANIFEST\.(?!SKIP)
-^Makefile$
-^blib/
-^blibdirs$
-^PM_to_blib$
-^MakeMaker-\d
-^Build$
-^_build
-^cover_db
-^.*\.bat$
-
-# Temp, old, vi and emacs files.
-~$
-\.old$
-\#\.*\#$
-\.\#$
-\.swp$
-\.bak$
-^pod.*\.tmp$
@@ -0,0 +1,93 @@
+{
+   "abstract" : "Syntactic try/catch sugar for use with Exception::Class",
+   "author" : [
+      "David Golden <dagolden@cpan.org>"
+   ],
+   "dynamic_config" : 0,
+   "generated_by" : "Dist::Zilla version 5.013, CPAN::Meta::Converter version 2.133380",
+   "license" : [
+      "apache_2_0"
+   ],
+   "meta-spec" : {
+      "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+      "version" : "2"
+   },
+   "name" : "Exception-Class-TryCatch",
+   "no_index" : {
+      "directory" : [
+         "t",
+         "xt",
+         "examples",
+         "corpus"
+      ],
+      "package" : [
+         "DB"
+      ]
+   },
+   "prereqs" : {
+      "configure" : {
+         "requires" : {
+            "ExtUtils::MakeMaker" : "6.17"
+         }
+      },
+      "develop" : {
+         "requires" : {
+            "Dist::Zilla" : "5.013",
+            "Dist::Zilla::PluginBundle::DAGOLDEN" : "0.060",
+            "File::Spec" : "0",
+            "File::Temp" : "0",
+            "IO::Handle" : "0",
+            "IPC::Open3" : "0",
+            "Pod::Coverage::TrustPod" : "0",
+            "Test::CPAN::Meta" : "0",
+            "Test::More" : "0",
+            "Test::Pod" : "1.41",
+            "Test::Pod::Coverage" : "1.08"
+         }
+      },
+      "runtime" : {
+         "requires" : {
+            "Exception::Class" : "0",
+            "Exporter" : "0",
+            "perl" : "5.006",
+            "strict" : "0",
+            "warnings" : "0"
+         }
+      },
+      "test" : {
+         "recommends" : {
+            "CPAN::Meta" : "0",
+            "CPAN::Meta::Requirements" : "2.120900"
+         },
+         "requires" : {
+            "ExtUtils::MakeMaker" : "0",
+            "File::Spec::Functions" : "0",
+            "List::Util" : "0",
+            "Test::More" : "0",
+            "overload" : "0",
+            "version" : "0"
+         }
+      }
+   },
+   "provides" : {
+      "Exception::Class::TryCatch" : {
+         "file" : "lib/Exception/Class/TryCatch.pm",
+         "version" : "1.13"
+      }
+   },
+   "release_status" : "stable",
+   "resources" : {
+      "bugtracker" : {
+         "web" : "https://github.com/dagolden/Exception-Class-TryCatch/issues"
+      },
+      "homepage" : "https://github.com/dagolden/Exception-Class-TryCatch",
+      "repository" : {
+         "type" : "git",
+         "url" : "https://github.com/dagolden/Exception-Class-TryCatch.git",
+         "web" : "https://github.com/dagolden/Exception-Class-TryCatch"
+      }
+   },
+   "version" : "1.13",
+   "x_authority" : "cpan:DAGOLDEN"
+}
+
@@ -1,27 +1,44 @@
 ---
-name: Exception-Class-TryCatch
-version: 1.12
+abstract: 'Syntactic try/catch sugar for use with Exception::Class'
 author:
   - 'David Golden <dagolden@cpan.org>'
-abstract: Syntactic tryE<sol>catch sugar for use with Exception::Class
-license: apache
-resources:
-  license: http://apache.org/licenses/LICENSE-2.0
-requires:
-  Exception::Class: 1.2
-  perl: 5.005
 build_requires:
-  Test::More: 0.47
-provides:
-  Exception::Class::TryCatch:
-    file: lib/Exception/Class/TryCatch.pm
-    version: 1.12
-generated_by: Module::Build version 0.3
+  ExtUtils::MakeMaker: '0'
+  File::Spec::Functions: '0'
+  List::Util: '0'
+  Test::More: '0'
+  overload: '0'
+  version: '0'
+configure_requires:
+  ExtUtils::MakeMaker: '6.17'
+dynamic_config: 0
+generated_by: 'Dist::Zilla version 5.013, CPAN::Meta::Converter version 2.133380'
+license: apache
 meta-spec:
-  url: http://module-build.sourceforge.net/META-spec-v1.2.html
-  version: 1.2
+  url: http://module-build.sourceforge.net/META-spec-v1.4.html
+  version: '1.4'
+name: Exception-Class-TryCatch
 no_index:
   directory:
-    - examples
-    - inc
     - t
+    - xt
+    - examples
+    - corpus
+  package:
+    - DB
+provides:
+  Exception::Class::TryCatch:
+    file: lib/Exception/Class/TryCatch.pm
+    version: '1.13'
+requires:
+  Exception::Class: '0'
+  Exporter: '0'
+  perl: '5.006'
+  strict: '0'
+  warnings: '0'
+resources:
+  bugtracker: https://github.com/dagolden/Exception-Class-TryCatch/issues
+  homepage: https://github.com/dagolden/Exception-Class-TryCatch
+  repository: https://github.com/dagolden/Exception-Class-TryCatch.git
+version: '1.13'
+x_authority: cpan:DAGOLDEN
@@ -1,16 +1,70 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.30
-require 5.005;
-use ExtUtils::MakeMaker;
-WriteMakefile
-(
-          'PL_FILES' => {},
-          'INSTALLDIRS' => 'site',
-          'NAME' => 'Exception::Class::TryCatch',
-          'EXE_FILES' => [],
-          'VERSION_FROM' => 'lib/Exception/Class/TryCatch.pm',
-          'PREREQ_PM' => {
-                           'Test::More' => '0.47',
-                           'Exception::Class' => '1.2'
-                         }
-        )
-;
+
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.013.
+use strict;
+use warnings;
+
+use 5.006;
+
+use ExtUtils::MakeMaker 6.17;
+
+
+
+my %WriteMakefileArgs = (
+  "ABSTRACT" => "Syntactic try/catch sugar for use with Exception::Class",
+  "AUTHOR" => "David Golden <dagolden\@cpan.org>",
+  "BUILD_REQUIRES" => {},
+  "CONFIGURE_REQUIRES" => {
+    "ExtUtils::MakeMaker" => "6.17"
+  },
+  "DISTNAME" => "Exception-Class-TryCatch",
+  "EXE_FILES" => [],
+  "LICENSE" => "apache",
+  "NAME" => "Exception::Class::TryCatch",
+  "PREREQ_PM" => {
+    "Exception::Class" => 0,
+    "Exporter" => 0,
+    "strict" => 0,
+    "warnings" => 0
+  },
+  "TEST_REQUIRES" => {
+    "ExtUtils::MakeMaker" => 0,
+    "File::Spec::Functions" => 0,
+    "List::Util" => 0,
+    "Test::More" => 0,
+    "overload" => 0,
+    "version" => 0
+  },
+  "VERSION" => "1.13",
+  "test" => {
+    "TESTS" => "t/*.t"
+  }
+);
+
+
+my %FallbackPrereqs = (
+  "Exception::Class" => 0,
+  "Exporter" => 0,
+  "ExtUtils::MakeMaker" => 0,
+  "File::Spec::Functions" => 0,
+  "List::Util" => 0,
+  "Test::More" => 0,
+  "overload" => 0,
+  "strict" => 0,
+  "version" => 0,
+  "warnings" => 0
+);
+
+
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
+  delete $WriteMakefileArgs{TEST_REQUIRES};
+  delete $WriteMakefileArgs{BUILD_REQUIRES};
+  $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
+}
+
+delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
+  unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
+
+WriteMakefile(%WriteMakefileArgs);
+
+
+
@@ -3,33 +3,33 @@ NAME
     Exception::Class
 
 VERSION
-    This documentation describes version 1.12.
+    version 1.13
 
 SYNOPSIS
          use Exception::Class::TryCatch;
-     
-     # simple usage of catch()
-     
-     eval { Exception::Class::Base->throw('error') };
+ 
+         # simple usage of catch()
+ 
+         eval { Exception::Class::Base->throw('error') };
          catch my $err and warn $err->error;
-     
-     # catching only certain types or else rethrowing
-     
-     eval { Exception::Class::Base::SubClass->throw('error') };
+ 
+         # catching only certain types or else rethrowing
+ 
+         eval { Exception::Class::Base::SubClass->throw('error') };
          catch( my $err, ['Exception::Class::Base', 'Other::Exception'] )
              and warn $err->error; 
-     
-     # catching and handling different types of errors
-     
-     eval { Exception::Class::Base->throw('error') };
+ 
+         # catching and handling different types of errors
+ 
+         eval { Exception::Class::Base->throw('error') };
          if ( catch my $err ) {
              $err->isa('this') and do { handle_this($err) };
              $err->isa('that') and do { handle_that($err) };
          }
-     
-     # use "try eval" to push exceptions onto a stack to catch later
-     
-     try eval { 
+ 
+         # use "try eval" to push exceptions onto a stack to catch later
+ 
+         try eval { 
              Exception::Class::Base->throw('error') 
          };
          do {
@@ -71,12 +71,12 @@ USAGE
   "catch"
          # zero argument form
          my $err = catch;
-     
-     # one argument forms
+ 
+         # one argument forms
          catch my $err;
          my $err = catch( [ 'Exception::Type', 'Exception::Other::Type' ] );
-     
-     # two argument form
+ 
+         # two argument form
          catch my $err, [ 'Exception::Type', 'Exception::Other::Type' ];
 
     Returns an "Exception::Class::Base" object (or an object which is a
@@ -90,7 +90,7 @@ USAGE
     object), an "Exception::Class::Base" object will be created using the
     string contents of the exception. This means that calls to "die" will be
     wrapped and may be treated as exception objects. Other objects caught
-    will be stringfied and wrapped likewise. Such wrapping will likely
+    will be stringified and wrapped likewise. Such wrapping will likely
     result in confusing stack traces and the like, so any methods other than
     "error" used on "Exception::Class::Base" objects caught should be used
     with caution.
@@ -132,11 +132,11 @@ USAGE
            # cleanup code can use try/catch
          };
          catch my $err;
-     
-     # scalar context
+ 
+         # scalar context
          $rv = try eval { return $scalar };
-     
-     # list context
+ 
+         # list context
          @rv = try [ eval { return @array } ];
 
     Pushes the current error ($@) onto a hidden error stack for later use by
@@ -206,14 +206,6 @@ USAGE
          catch my $outer_err;
          # handle $outer_err;
 
-BUGS
-    Please report any bugs or feature using the CPAN Request Tracker. Bugs
-    can be submitted through the web interface at
-    <http://rt.cpan.org/Dist/Display.html?Queue=Exception-Class-TryCatch>
-
-    When submitting a bug or request, please include a test-file or a patch
-    to an existing test-file that illustrates the bug or desired feature.
-
 REFERENCES
     1.  perrin. (2003), "Re: Re2: Learning how to use the Error module by
         example", (perlmonks.org), Available:
@@ -228,24 +220,27 @@ SEE ALSO
 
     *   Error -- but see (Perrin 2003) before using
 
+SUPPORT
+  Bugs / Feature Requests
+    Please report any bugs or feature requests through the issue tracker at
+    <https://github.com/dagolden/Exception-Class-TryCatch/issues>. You will
+    be notified automatically of any progress on your issue.
+
+  Source Code
+    This is open source software. The code repository is available for
+    public review and contribution under the terms of the license.
+
+    <https://github.com/dagolden/Exception-Class-TryCatch>
+
+      git clone https://github.com/dagolden/Exception-Class-TryCatch.git
+
 AUTHOR
-    David A. Golden (DAGOLDEN)
+    David Golden <dagolden@cpan.org>
 
 COPYRIGHT AND LICENSE
-    Copyright (c) 2004-2008 by David A. Golden. All rights reserved.
-
-    Licensed under Apache License, Version 2.0 (the "License"). You may not
-    use this file except in compliance with the License. A copy of the
-    License was distributed with this file or you may obtain a copy of the
-    License from http://www.apache.org/licenses/LICENSE-2.0
-
-    Files produced as output though the use of this software, shall not be
-    considered Derivative Works, but shall be considered the original work
-    of the Licensor.
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
+    This software is Copyright (c) 2014 by David Golden.
+
+    This is free software, licensed under:
+
+      The Apache License, Version 2.0, January 2004
 
@@ -1,9 +0,0 @@
-# Copyright (c) 2008 by David Golden. All rights reserved.
-# Licensed under Apache License, Version 2.0 (the "License").
-# You may not use this file except in compliance with the License.
-# A copy of the License was distributed with this file or you may obtain a 
-# copy of the License from http://www.apache.org/licenses/LICENSE-2.0
-
-- Write some code
-- Write some tests
-- Replace boilerplate docs with real documentation
@@ -0,0 +1,37 @@
+requires "Exception::Class" => "0";
+requires "Exporter" => "0";
+requires "perl" => "5.006";
+requires "strict" => "0";
+requires "warnings" => "0";
+
+on 'test' => sub {
+  requires "ExtUtils::MakeMaker" => "0";
+  requires "File::Spec::Functions" => "0";
+  requires "List::Util" => "0";
+  requires "Test::More" => "0";
+  requires "overload" => "0";
+  requires "version" => "0";
+};
+
+on 'test' => sub {
+  recommends "CPAN::Meta" => "0";
+  recommends "CPAN::Meta::Requirements" => "2.120900";
+};
+
+on 'configure' => sub {
+  requires "ExtUtils::MakeMaker" => "6.17";
+};
+
+on 'develop' => sub {
+  requires "Dist::Zilla" => "5.013";
+  requires "Dist::Zilla::PluginBundle::DAGOLDEN" => "0.060";
+  requires "File::Spec" => "0";
+  requires "File::Temp" => "0";
+  requires "IO::Handle" => "0";
+  requires "IPC::Open3" => "0";
+  requires "Pod::Coverage::TrustPod" => "0";
+  requires "Test::CPAN::Meta" => "0";
+  requires "Test::More" => "0";
+  requires "Test::Pod" => "1.41";
+  requires "Test::Pod::Coverage" => "1.08";
+};
@@ -0,0 +1,10 @@
+name = Exception-Class-TryCatch
+author = David Golden <dagolden@cpan.org>
+copyright_holder = David Golden
+
+[@DAGOLDEN]
+:version = 0.060
+stopwords = Perrin
+stopwords = Rolsky
+stopwords = perlmonks
+stopwords = perrin
@@ -1,62 +0,0 @@
-# Copyright (c) 2008 by David Golden. All rights reserved.
-# Licensed under Apache License, Version 2.0 (the "License").
-# You may not use this file except in compliance with the License.
-# A copy of the License was distributed with this file or you may obtain a 
-# copy of the License from http://www.apache.org/licenses/LICENSE-2.0
-
-package Module::Build::WikiDoc;
-use strict;
-use base qw/Module::Build/;
-use File::Spec;
-
-sub ACTION_wikidoc {
-    my $self = shift;
-    eval "use Pod::WikiDoc";
-    if ( $@ eq '' ) {
-        my $parser = Pod::WikiDoc->new({ 
-            comment_blocks => 1,
-            keywords => { VERSION => $self->dist_version },
-        });
-        for my $src ( keys %{ $self->find_pm_files() } ) {
-            (my $tgt = $src) =~ s{\.pm$}{.pod};
-            $parser->filter( {
-                input   => $src,
-                output  => $tgt,
-            });
-            print "Creating $tgt\n";
-            $tgt =~ s{\\}{/}g;
-            $self->_add_to_manifest( 'MANIFEST', $tgt );
-        }
-    }
-    else {
-        warn "Pod::WikiDoc not available. Skipping wikidoc.\n";
-    }
-}
-
-sub ACTION_test {
-    my $self = shift;
-    my $missing_pod;
-    for my $src ( keys %{ $self->find_pm_files() } ) {
-        (my $tgt = $src) =~ s{\.pm$}{.pod};
-        $missing_pod = 1 if ! -e $tgt;
-    }
-    if ( $missing_pod ) {
-        $self->depends_on('wikidoc');
-        $self->depends_on('build');
-    }
-    $self->SUPER::ACTION_test;
-}
-
-sub ACTION_testpod {
-    my $self = shift;
-    $self->depends_on('wikidoc');
-    $self->SUPER::ACTION_testpod;
-}
-
-sub ACTION_distmeta {
-    my $self = shift;
-    $self->depends_on('wikidoc');
-    $self->SUPER::ACTION_distmeta;
-}
-
-1;
@@ -1,19 +1,14 @@
-# Copyright (c) 2008 by David Golden. All rights reserved.
-# Licensed under Apache License, Version 2.0 (the "License").
-# You may not use this file except in compliance with the License.
-# A copy of the License was distributed with this file or you may obtain a 
-# copy of the License from http://www.apache.org/licenses/LICENSE-2.0
+use strict;
+use warnings;
 
 package Exception::Class::TryCatch;
+# ABSTRACT: Syntactic try/catch sugar for use with Exception::Class
+our $VERSION = '1.13'; # VERSION
 
-$VERSION     = '1.12';
-@ISA         = qw (Exporter);
-@EXPORT      = qw ( catch try );
-@EXPORT_OK   = qw ( caught );
+our @ISA       = qw (Exporter);
+our @EXPORT    = qw ( catch try );
+our @EXPORT_OK = qw ( caught );
 
-use 5.005; # Aiming for same as Exception::Class
-#use warnings -- not supported in Perl 5.5, darn
-use strict;
 use Exception::Class;
 use Exporter ();
 
@@ -23,26 +18,26 @@ my @error_stack;
 # catch()
 #--------------------------------------------------------------------------#
 
-sub catch(;$$) {
+sub catch(;$$) { ## no critic
     my $e;
     my $err = @error_stack ? pop @error_stack : $@;
-    if ( UNIVERSAL::isa($err, 'Exception::Class::Base' ) ) {
+    if ( UNIVERSAL::isa( $err, 'Exception::Class::Base' ) ) {
         $e = $err;
-    } 
-    elsif ($err eq '') {
+    }
+    elsif ( $err eq '' ) {
         $e = undef;
     }
     else {
         # use error message or hope something stringifies
-        $e = Exception::Class::Base->new( "$err" );
+        $e = Exception::Class::Base->new("$err");
     }
-    unless ( ref($_[0]) eq 'ARRAY' ) { 
+    unless ( ref( $_[0] ) eq 'ARRAY' ) {
         $_[0] = $e;
         shift;
     }
     if ($e) {
-        if ( defined($_[0]) and ref($_[0]) eq 'ARRAY' ) {
-            $e->rethrow() unless grep { $e->isa($_) } @{$_[0]};
+        if ( defined( $_[0] ) and ref( $_[0] ) eq 'ARRAY' ) {
+            $e->rethrow() unless grep { $e->isa($_) } @{ $_[0] };
         }
     }
     return wantarray ? ( $e ? ($e) : () ) : $e;
@@ -54,7 +49,7 @@ sub catch(;$$) {
 # try()
 #--------------------------------------------------------------------------#
 
-sub try($) {
+sub try($) { ## no critic
     my $v = shift;
     push @error_stack, $@;
     return ref($v) eq 'ARRAY' ? @$v : $v if wantarray;
@@ -65,124 +60,135 @@ sub try($) {
 
 __END__
 
-=begin wikidoc
+=pod
 
-= NAME
+=encoding UTF-8
+
+=head1 NAME
 
 Exception::Class::TryCatch - Syntactic try/catch sugar for use with Exception::Class
 
-= VERSION
-
-This documentation describes version %%VERSION%%.
-
-= SYNOPSIS
-
-    use Exception::Class::TryCatch;
-    
-    # simple usage of catch()
-    
-    eval { Exception::Class::Base->throw('error') };
-    catch my $err and warn $err->error;
-
-    # catching only certain types or else rethrowing
-    
-    eval { Exception::Class::Base::SubClass->throw('error') };
-    catch( my $err, ['Exception::Class::Base', 'Other::Exception'] )
-        and warn $err->error; 
-    
-    # catching and handling different types of errors
-    
-    eval { Exception::Class::Base->throw('error') };
-    if ( catch my $err ) {
-        $err->isa('this') and do { handle_this($err) };
-        $err->isa('that') and do { handle_that($err) };
-    }
-    
-    # use "try eval" to push exceptions onto a stack to catch later
-    
-    try eval { 
-        Exception::Class::Base->throw('error') 
-    };
-    do {
-        # cleanup that might use "try/catch" again
-    };
-    catch my $err; # catches a matching "try"
-
-= DESCRIPTION
+=head1 VERSION
+
+version 1.13
+
+=head1 SYNOPSIS
+
+     use Exception::Class::TryCatch;
+ 
+     # simple usage of catch()
+ 
+     eval { Exception::Class::Base->throw('error') };
+     catch my $err and warn $err->error;
+ 
+     # catching only certain types or else rethrowing
+ 
+     eval { Exception::Class::Base::SubClass->throw('error') };
+     catch( my $err, ['Exception::Class::Base', 'Other::Exception'] )
+         and warn $err->error; 
+ 
+     # catching and handling different types of errors
+ 
+     eval { Exception::Class::Base->throw('error') };
+     if ( catch my $err ) {
+         $err->isa('this') and do { handle_this($err) };
+         $err->isa('that') and do { handle_that($err) };
+     }
+ 
+     # use "try eval" to push exceptions onto a stack to catch later
+ 
+     try eval { 
+         Exception::Class::Base->throw('error') 
+     };
+     do {
+         # cleanup that might use "try/catch" again
+     };
+     catch my $err; # catches a matching "try"
+
+=head1 DESCRIPTION
 
 Exception::Class::TryCatch provides syntactic sugar for use with
-[Exception::Class] using the familiar keywords {try} and {catch}.  Its
-primary objective is to allow users to avoid dealing directly with {$@} by
-ensuring that any exceptions caught in an {eval} are captured as
-[Exception::Class] objects, whether they were thrown objects to begin with or
-whether the error resulted from {die}.  This means that users may immediately
-use {isa} and various [Exception::Class] methods to process the exception. 
+L<Exception::Class> using the familiar keywords C<<< try >>> and C<<< catch >>>.  Its
+primary objective is to allow users to avoid dealing directly with C<<< $@ >>> by
+ensuring that any exceptions caught in an C<<< eval >>> are captured as
+L<Exception::Class> objects, whether they were thrown objects to begin with or
+whether the error resulted from C<<< die >>>.  This means that users may immediately
+use C<<< isa >>> and various L<Exception::Class> methods to process the exception. 
 
 In addition, this module provides for a method to push errors onto a hidden
-error stack immediately after an {eval} so that cleanup code or other error
-handling may also call {eval} without the original error in {$@} being lost.
+error stack immediately after an C<<< eval >>> so that cleanup code or other error
+handling may also call C<<< eval >>> without the original error in C<<< $@ >>> being lost.
 
 Inspiration for this module is due in part to Dave Rolsky's
 article "Exception Handling in Perl With Exception::Class" in
-~The Perl Journal~ (Rolsky 2004).
+I<The Perl Journal> (Rolsky 2004).
 
-The {try/catch} syntax used in this module does not use code reference
-prototypes the way the [Error.pm|Error] module does, but simply provides some
-helpful functionality when used in combination with {eval}.  As a result, it
+The C<<< try/catch >>> syntax used in this module does not use code reference
+prototypes the way the L<Error.pm|Error> module does, but simply provides some
+helpful functionality when used in combination with C<<< eval >>>.  As a result, it
 avoids the complexity and dangers involving nested closures and memory leaks
-inherent in [Error.pm|Error] (Perrin 2003).  
+inherent in L<Error.pm|Error> (Perrin 2003).  
 
 Rolsky (2004) notes that these memory leaks may not occur in recent versions of
 Perl, but the approach used in Exception::Class::TryCatch should be safe for all
-versions of Perl as it leaves all code execution to the {eval} in the current
+versions of Perl as it leaves all code execution to the C<<< eval >>> in the current
 scope, avoiding closures altogether.
 
-= USAGE
-
-== {catch}
+=head1 USAGE
 
-    # zero argument form
-    my $err = catch;
+=head2 C<<< catch >>>
 
-    # one argument forms
-    catch my $err;
-    my $err = catch( [ 'Exception::Type', 'Exception::Other::Type' ] );
-
-    # two argument form
-    catch my $err, [ 'Exception::Type', 'Exception::Other::Type' ];
-
-Returns an {Exception::Class::Base} object (or an object which is a subclass of
-it) if an exception has been caught by {eval}.  If no exception was thrown, it
-returns {undef} in scalar context and an empty list in list context.   The
-exception is either popped from a hidden error stack (see {try}) or, if the
-stack is empty, taken from the current value of {$@}.
-
-If the exception is not an {Exception::Class::Base} object (or subclass
-object), an {Exception::Class::Base} object will be created using the string
-contents of the exception.  This means that calls to {die} will be wrapped and
-may be treated as exception objects.  Other objects caught will be stringfied
+     # zero argument form
+     my $err = catch;
+ 
+     # one argument forms
+     catch my $err;
+     my $err = catch( [ 'Exception::Type', 'Exception::Other::Type' ] );
+ 
+     # two argument form
+     catch my $err, [ 'Exception::Type', 'Exception::Other::Type' ];
+
+Returns an C<<< Exception::Class::Base >>> object (or an object which is a subclass of
+it) if an exception has been caught by C<<< eval >>>.  If no exception was thrown, it
+returns C<<< undef >>> in scalar context and an empty list in list context.   The
+exception is either popped from a hidden error stack (see C<<< try >>>) or, if the
+stack is empty, taken from the current value of C<<< $@ >>>.
+
+If the exception is not an C<<< Exception::Class::Base >>> object (or subclass
+object), an C<<< Exception::Class::Base >>> object will be created using the string
+contents of the exception.  This means that calls to C<<< die >>> will be wrapped and
+may be treated as exception objects.  Other objects caught will be stringified
 and wrapped likewise.  Such wrapping will likely result in confusing stack
-traces and the like, so any methods other than {error} used on 
-{Exception::Class::Base} objects caught should be used with caution.
+traces and the like, so any methods other than C<<< error >>> used on 
+C<<< Exception::Class::Base >>> objects caught should be used with caution.
 
-{catch} is prototyped to take up to two optional scalar arguments.  The single
+C<<< catch >>> is prototyped to take up to two optional scalar arguments.  The single
 argument form has two variations.  
 
-* If the argument is a reference to an array,
+=over
+
+=item *
+
+If the argument is a reference to an array,
 any exception caught that is not of the same type (or a subtype) of one
 of the classes listed in the array will be rethrown.  
-* If the argument is not a reference to an array, {catch} 
+
+=item *
+
+If the argument is not a reference to an array, C<<< catch >>> 
 will set the argument to the same value that is returned. 
-This allows for the {catch my $err} idiom without parentheses.
+This allows for the C<<< catch my $err >>> idiom without parentheses.
+
+=back
 
 In the two-argument form, the first argument is set to the same value as is
 returned.  The second argument must be an array reference and is handled 
 the same as as for the single argument version with an array reference, as
 given above.
 
-== {caught} (DEPRECATED)
+=head2 C<<< caught >>> (DEPRECATED)
 
-{caught} is a synonym for {catch} for syntactic convenience.
+C<<< caught >>> is a synonym for C<<< catch >>> for syntactic convenience.
 
 NOTE: Exception::Class version 1.21 added a "caught" method of its own.  It
 provides somewhat similar functionality to this subroutine, but with very
@@ -193,135 +199,149 @@ in future releases of Exception::Class::TryCatch.
 
 This method is no longer exported by default.
 
-== {try}
+=head2 C<<< try >>>
 
-    # void context
-    try eval {
-      # dangerous code
-    };
-    do {
-      # cleanup code can use try/catch
-    };
-    catch my $err;
+     # void context
+     try eval {
+       # dangerous code
+     };
+     do {
+       # cleanup code can use try/catch
+     };
+     catch my $err;
+ 
+     # scalar context
+     $rv = try eval { return $scalar };
  
-    # scalar context
-    $rv = try eval { return $scalar };
-
-    # list context
-    @rv = try [ eval { return @array } ];
-
-Pushes the current error ({$@}) onto a hidden error stack for later use by
-{catch}.  {try} uses a prototype that expects a single scalar so that it can
-be used with eval without parentheses.  As {eval { BLOCK }} is an argument
-to try, it will be evaluated just prior to {try}, ensuring that {try}
-captures the correct error status.  {try} does not itself handle any errors --
-it merely records the results of {eval}. {try { BLOCK }} will be interpreted
+     # list context
+     @rv = try [ eval { return @array } ];
+
+Pushes the current error (C<<< $@ >>>) onto a hidden error stack for later use by
+C<<< catch >>>.  C<<< try >>> uses a prototype that expects a single scalar so that it can
+be used with eval without parentheses.  As C<<< eval { BLOCK } >>> is an argument
+to try, it will be evaluated just prior to C<<< try >>>, ensuring that C<<< try >>>
+captures the correct error status.  C<<< try >>> does not itself handle any errors --
+it merely records the results of C<<< eval >>>. C<<< try { BLOCK } >>> will be interpreted
 as passing a hash reference and will (probably) not compile. (And if it does,
 it will result in very unexpected behavior.)
 
-Since {try} requires a single argument, {eval} will normally be called
-in scalar context.  To use {eval} in list context with {try}, put the 
-call to {eval} in an anonymous array:  
+Since C<<< try >>> requires a single argument, C<<< eval >>> will normally be called
+in scalar context.  To use C<<< eval >>> in list context with C<<< try >>>, put the 
+call to C<<< eval >>> in an anonymous array:  
 
-  @rv = try [ eval {return @array} ];
+   @rv = try [ eval {return @array} ];
 
-When {try} is called in list context, if the argument to {try} is an array
-reference, {try} will dereference the array and return the resulting list.
+When C<<< try >>> is called in list context, if the argument to C<<< try >>> is an array
+reference, C<<< try >>> will dereference the array and return the resulting list.
 
-In scalar context, {try} passes through the scalar value returned
-by {eval} without modifications -- even if that is an array reference.
+In scalar context, C<<< try >>> passes through the scalar value returned
+by C<<< eval >>> without modifications -- even if that is an array reference.
 
-  $rv = try eval { return $scalar };
-  $rv = try eval { return [ qw( anonymous array ) ] };
+   $rv = try eval { return $scalar };
+   $rv = try eval { return [ qw( anonymous array ) ] };
 
-Of course, if the eval throws an exception, {eval} and thus {try} will return
+Of course, if the eval throws an exception, C<<< eval >>> and thus C<<< try >>> will return
 undef.
 
-{try} must always be properly bracketed with a matching {catch} or unexpected
-behavior may result when {catch} pops the error off of the stack.  {try} 
-executes right after its {eval}, so inconsistent usage of {try} like the
+C<<< try >>> must always be properly bracketed with a matching C<<< catch >>> or unexpected
+behavior may result when C<<< catch >>> pops the error off of the stack.  C<<< try >>> 
+executes right after its C<<< eval >>>, so inconsistent usage of C<<< try >>> like the
 following will work as expected:
 
-    try eval {
-        eval { die "inner" };
-        catch my $inner_err
-        die "outer" if $inner_err;
-    };
-    catch my $outer_err;
-    # handle $outer_err;
-    
+     try eval {
+         eval { die "inner" };
+         catch my $inner_err
+         die "outer" if $inner_err;
+     };
+     catch my $outer_err;
+     # handle $outer_err;
+
 However, the following code is a problem:
 
-    # BAD EXAMPLE
-    try eval {
-        try eval { die "inner" };
-        die $@ if $@;
-    };
-    catch my $outer_err;
-    # handle $outer_err;
-    
-This code will appear to run correctly, but {catch} gets the exception
-from the inner {try}, not the outer one, and there will still be an exception
-on the error stack which will be caught by the next {catch} in the program, 
+     # BAD EXAMPLE
+     try eval {
+         try eval { die "inner" };
+         die $@ if $@;
+     };
+     catch my $outer_err;
+     # handle $outer_err;
+
+This code will appear to run correctly, but C<<< catch >>> gets the exception
+from the inner C<<< try >>>, not the outer one, and there will still be an exception
+on the error stack which will be caught by the next C<<< catch >>> in the program, 
 causing unexpected (and likely hard to track) behavior.
 
-In short, if you use {try}, you must have a matching {catch}.  The problem
+In short, if you use C<<< try >>>, you must have a matching C<<< catch >>>.  The problem
 code above should be rewritten as:
 
-    try eval {
-        try eval { die "inner" };
-        catch my $inner_err;
-        $inner_err->rethrow if $inner_err;
-    };
-    catch my $outer_err;
-    # handle $outer_err;
-
-= BUGS
+     try eval {
+         try eval { die "inner" };
+         catch my $inner_err;
+         $inner_err->rethrow if $inner_err;
+     };
+     catch my $outer_err;
+     # handle $outer_err;
 
-Please report any bugs or feature using the CPAN Request Tracker.  
-Bugs can be submitted through the web interface at 
-[http://rt.cpan.org/Dist/Display.html?Queue=Exception-Class-TryCatch]
+=head1 REFERENCES
 
-When submitting a bug or request, please include a test-file or a patch to an
-existing test-file that illustrates the bug or desired feature.
+=over
 
-= REFERENCES
+=item 1.
 
-0 perrin. (2003), "Re: Re2: Learning how to use the Error module by example",
-(perlmonks.org), Available: http://www.perlmonks.org/index.pl?node_id=278900
+perrin. (2003), "Re: Re2: Learning how to use the Error module by example",
+(perlmonks.org), Available: http:E<sol>E<sol>www.perlmonks.orgE<sol>index.pl?node_id=278900
 (Accessed September 8, 2004).
-0 Rolsky, D. (2004), "Exception Handling in Perl with Exception::Class",
-~The Perl Journal~, vol. 8, no. 7, pp. 9-13
 
-= SEE ALSO
+=item 2.
 
-* [Exception::Class]
-* [Error] -- but see (Perrin 2003) before using
+Rolsky, D. (2004), "Exception Handling in Perl with Exception::Class",
+I<The Perl Journal>, vol. 8, no. 7, pp. 9-13
 
-= AUTHOR
+=back
 
-David A. Golden (DAGOLDEN)
+=head1 SEE ALSO
 
-= COPYRIGHT AND LICENSE
+=over
 
-Copyright (c) 2004-2008 by David A. Golden. All rights reserved.
+=item *
 
-Licensed under Apache License, Version 2.0 (the "License").
-You may not use this file except in compliance with the License.
-A copy of the License was distributed with this file or you may obtain a 
-copy of the License from http://www.apache.org/licenses/LICENSE-2.0
+L<Exception::Class>
 
-Files produced as output though the use of this software, shall not be
-considered Derivative Works, but shall be considered the original work of the
-Licensor.
+=item *
 
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
+L<Error> -- but see (Perrin 2003) before using
 
-=end wikidoc
+=back
 
-=cut
+=for :stopwords cpan testmatrix url annocpan anno bugtracker rt cpants kwalitee diff irc mailto metadata placeholders metacpan
+
+=head1 SUPPORT
+
+=head2 Bugs / Feature Requests
+
+Please report any bugs or feature requests through the issue tracker
+at L<https://github.com/dagolden/Exception-Class-TryCatch/issues>.
+You will be notified automatically of any progress on your issue.
 
+=head2 Source Code
+
+This is open source software.  The code repository is available for
+public review and contribution under the terms of the license.
+
+L<https://github.com/dagolden/Exception-Class-TryCatch>
+
+  git clone https://github.com/dagolden/Exception-Class-TryCatch.git
+
+=head1 AUTHOR
+
+David Golden <dagolden@cpan.org>
+
+=head1 COPYRIGHT AND LICENSE
+
+This software is Copyright (c) 2014 by David Golden.
+
+This is free software, licensed under:
+
+  The Apache License, Version 2.0, January 2004
+
+=cut
@@ -1,286 +0,0 @@
-# Generated by Pod::WikiDoc version 0.18
-
-=pod
-
-=head1 NAME
-
-Exception::Class::TryCatch - Syntactic tryE<sol>catch sugar for use with Exception::Class
-
-=head1 VERSION
-
-This documentation describes version 1.12.
-
-=head1 SYNOPSIS
-
-     use Exception::Class::TryCatch;
- 
-     # simple usage of catch()
- 
-     eval { Exception::Class::Base->throw('error') };
-     catch my $err and warn $err->error;
- 
-     # catching only certain types or else rethrowing
- 
-     eval { Exception::Class::Base::SubClass->throw('error') };
-     catch( my $err, ['Exception::Class::Base', 'Other::Exception'] )
-         and warn $err->error; 
- 
-     # catching and handling different types of errors
- 
-     eval { Exception::Class::Base->throw('error') };
-     if ( catch my $err ) {
-         $err->isa('this') and do { handle_this($err) };
-         $err->isa('that') and do { handle_that($err) };
-     }
- 
-     # use "try eval" to push exceptions onto a stack to catch later
- 
-     try eval { 
-         Exception::Class::Base->throw('error') 
-     };
-     do {
-         # cleanup that might use "try/catch" again
-     };
-     catch my $err; # catches a matching "try"
-
-=head1 DESCRIPTION
-
-Exception::Class::TryCatch provides syntactic sugar for use with
-L<Exception::Class> using the familiar keywords C<<< try >>> and C<<< catch >>>.  Its
-primary objective is to allow users to avoid dealing directly with C<<< $@ >>> by
-ensuring that any exceptions caught in an C<<< eval >>> are captured as
-L<Exception::Class> objects, whether they were thrown objects to begin with or
-whether the error resulted from C<<< die >>>.  This means that users may immediately
-use C<<< isa >>> and various L<Exception::Class> methods to process the exception. 
-
-In addition, this module provides for a method to push errors onto a hidden
-error stack immediately after an C<<< eval >>> so that cleanup code or other error
-handling may also call C<<< eval >>> without the original error in C<<< $@ >>> being lost.
-
-Inspiration for this module is due in part to Dave Rolsky's
-article "Exception Handling in Perl With Exception::Class" in
-I<The Perl Journal> (Rolsky 2004).
-
-The C<<< try/catch >>> syntax used in this module does not use code reference
-prototypes the way the L<Error.pm|Error> module does, but simply provides some
-helpful functionality when used in combination with C<<< eval >>>.  As a result, it
-avoids the complexity and dangers involving nested closures and memory leaks
-inherent in L<Error.pm|Error> (Perrin 2003).  
-
-Rolsky (2004) notes that these memory leaks may not occur in recent versions of
-Perl, but the approach used in Exception::Class::TryCatch should be safe for all
-versions of Perl as it leaves all code execution to the C<<< eval >>> in the current
-scope, avoiding closures altogether.
-
-=head1 USAGE
-
-=head2 C<<< catch >>>
-
-     # zero argument form
-     my $err = catch;
- 
-     # one argument forms
-     catch my $err;
-     my $err = catch( [ 'Exception::Type', 'Exception::Other::Type' ] );
- 
-     # two argument form
-     catch my $err, [ 'Exception::Type', 'Exception::Other::Type' ];
-
-Returns an C<<< Exception::Class::Base >>> object (or an object which is a subclass of
-it) if an exception has been caught by C<<< eval >>>.  If no exception was thrown, it
-returns C<<< undef >>> in scalar context and an empty list in list context.   The
-exception is either popped from a hidden error stack (see C<<< try >>>) or, if the
-stack is empty, taken from the current value of C<<< $@ >>>.
-
-If the exception is not an C<<< Exception::Class::Base >>> object (or subclass
-object), an C<<< Exception::Class::Base >>> object will be created using the string
-contents of the exception.  This means that calls to C<<< die >>> will be wrapped and
-may be treated as exception objects.  Other objects caught will be stringfied
-and wrapped likewise.  Such wrapping will likely result in confusing stack
-traces and the like, so any methods other than C<<< error >>> used on 
-C<<< Exception::Class::Base >>> objects caught should be used with caution.
-
-C<<< catch >>> is prototyped to take up to two optional scalar arguments.  The single
-argument form has two variations.  
-
-=over
-
-=item *
-
-If the argument is a reference to an array,
-any exception caught that is not of the same type (or a subtype) of one
-of the classes listed in the array will be rethrown.  
-
-=item *
-
-If the argument is not a reference to an array, C<<< catch >>> 
-will set the argument to the same value that is returned. 
-This allows for the C<<< catch my $err >>> idiom without parentheses.
-
-=back
-
-In the two-argument form, the first argument is set to the same value as is
-returned.  The second argument must be an array reference and is handled 
-the same as as for the single argument version with an array reference, as
-given above.
-
-=head2 C<<< caught >>> (DEPRECATED)
-
-C<<< caught >>> is a synonym for C<<< catch >>> for syntactic convenience.
-
-NOTE: Exception::Class version 1.21 added a "caught" method of its own.  It
-provides somewhat similar functionality to this subroutine, but with very
-different semantics.  As this class is intended to work closely with
-Exception::Class, the existence of a subroutine and a method with the same name
-is liable to cause confusion and this method is deprecated and may be removed
-in future releases of Exception::Class::TryCatch.
-
-This method is no longer exported by default.
-
-=head2 C<<< try >>>
-
-     # void context
-     try eval {
-       # dangerous code
-     };
-     do {
-       # cleanup code can use try/catch
-     };
-     catch my $err;
- 
-     # scalar context
-     $rv = try eval { return $scalar };
- 
-     # list context
-     @rv = try [ eval { return @array } ];
-
-Pushes the current error (C<<< $@ >>>) onto a hidden error stack for later use by
-C<<< catch >>>.  C<<< try >>> uses a prototype that expects a single scalar so that it can
-be used with eval without parentheses.  As C<<< eval { BLOCK } >>> is an argument
-to try, it will be evaluated just prior to C<<< try >>>, ensuring that C<<< try >>>
-captures the correct error status.  C<<< try >>> does not itself handle any errors --
-it merely records the results of C<<< eval >>>. C<<< try { BLOCK } >>> will be interpreted
-as passing a hash reference and will (probably) not compile. (And if it does,
-it will result in very unexpected behavior.)
-
-Since C<<< try >>> requires a single argument, C<<< eval >>> will normally be called
-in scalar context.  To use C<<< eval >>> in list context with C<<< try >>>, put the 
-call to C<<< eval >>> in an anonymous array:  
-
-   @rv = try [ eval {return @array} ];
-
-When C<<< try >>> is called in list context, if the argument to C<<< try >>> is an array
-reference, C<<< try >>> will dereference the array and return the resulting list.
-
-In scalar context, C<<< try >>> passes through the scalar value returned
-by C<<< eval >>> without modifications -- even if that is an array reference.
-
-   $rv = try eval { return $scalar };
-   $rv = try eval { return [ qw( anonymous array ) ] };
-
-Of course, if the eval throws an exception, C<<< eval >>> and thus C<<< try >>> will return
-undef.
-
-C<<< try >>> must always be properly bracketed with a matching C<<< catch >>> or unexpected
-behavior may result when C<<< catch >>> pops the error off of the stack.  C<<< try >>> 
-executes right after its C<<< eval >>>, so inconsistent usage of C<<< try >>> like the
-following will work as expected:
-
-     try eval {
-         eval { die "inner" };
-         catch my $inner_err
-         die "outer" if $inner_err;
-     };
-     catch my $outer_err;
-     # handle $outer_err;
-
-However, the following code is a problem:
-
-     # BAD EXAMPLE
-     try eval {
-         try eval { die "inner" };
-         die $@ if $@;
-     };
-     catch my $outer_err;
-     # handle $outer_err;
-
-This code will appear to run correctly, but C<<< catch >>> gets the exception
-from the inner C<<< try >>>, not the outer one, and there will still be an exception
-on the error stack which will be caught by the next C<<< catch >>> in the program, 
-causing unexpected (and likely hard to track) behavior.
-
-In short, if you use C<<< try >>>, you must have a matching C<<< catch >>>.  The problem
-code above should be rewritten as:
-
-     try eval {
-         try eval { die "inner" };
-         catch my $inner_err;
-         $inner_err->rethrow if $inner_err;
-     };
-     catch my $outer_err;
-     # handle $outer_err;
-
-=head1 BUGS
-
-Please report any bugs or feature using the CPAN Request Tracker.  
-Bugs can be submitted through the web interface at 
-L<http://rt.cpan.org/Dist/Display.html?Queue=Exception-Class-TryCatch>
-
-When submitting a bug or request, please include a test-file or a patch to an
-existing test-file that illustrates the bug or desired feature.
-
-=head1 REFERENCES
-
-=over
-
-=item 1.
-
-perrin. (2003), "Re: Re2: Learning how to use the Error module by example",
-(perlmonks.org), Available: http:E<sol>E<sol>www.perlmonks.orgE<sol>index.pl?node_id=278900
-(Accessed September 8, 2004).
-
-=item 2.
-
-Rolsky, D. (2004), "Exception Handling in Perl with Exception::Class",
-I<The Perl Journal>, vol. 8, no. 7, pp. 9-13
-
-=back
-
-=head1 SEE ALSO
-
-=over
-
-=item *
-
-L<Exception::Class>
-
-=item *
-
-L<Error> -- but see (Perrin 2003) before using
-
-=back
-
-=head1 AUTHOR
-
-David A. Golden (DAGOLDEN)
-
-=head1 COPYRIGHT AND LICENSE
-
-Copyright (c) 2004-2008 by David A. Golden. All rights reserved.
-
-Licensed under Apache License, Version 2.0 (the "License").
-You may not use this file except in compliance with the License.
-A copy of the License was distributed with this file or you may obtain a 
-copy of the License from http:E<sol>E<sol>www.apache.orgE<sol>licensesE<sol>LICENSE-2.0
-
-Files produced as output though the use of this software, shall not be
-considered Derivative Works, but shall be considered the original work of the
-Licensor.
-
-Unless required by applicable law or agreed to in writing, software
-distributed under the License is distributed on an "AS IS" BASIS,
-WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-See the License for the specific language governing permissions and
-limitations under the License.
-
-
@@ -0,0 +1,26 @@
+severity = 5
+verbose = 8
+
+[Variables::ProhibitPunctuationVars]
+allow = $@ $!
+
+[TestingAndDebugging::ProhibitNoStrict]
+allow = refs
+
+[Variables::ProhibitEvilVariables]
+variables = $DB::single
+
+# Turn these off
+[-BuiltinFunctions::ProhibitStringyEval]
+[-ControlStructures::ProhibitPostfixControls]
+[-ControlStructures::ProhibitUnlessBlocks]
+[-Documentation::RequirePodSections]
+[-InputOutput::ProhibitInteractiveTest]
+[-References::ProhibitDoubleSigils]
+[-RegularExpressions::RequireExtendedFormatting]
+[-InputOutput::ProhibitTwoArgOpen]
+[-Modules::ProhibitEvilModules]
+
+# Turn this on
+[Lax::ProhibitStringyEval::ExceptForRequire]
+
@@ -0,0 +1,181 @@
+#!perl
+
+use strict;
+use warnings;
+
+# This test was generated by Dist::Zilla::Plugin::Test::ReportPrereqs 0.013
+
+use Test::More tests => 1;
+
+use ExtUtils::MakeMaker;
+use File::Spec::Functions;
+use List::Util qw/max/;
+use version;
+
+# hide optional CPAN::Meta modules from prereq scanner
+# and check if they are available
+my $cpan_meta = "CPAN::Meta";
+my $cpan_meta_req = "CPAN::Meta::Requirements";
+my $HAS_CPAN_META = eval "require $cpan_meta"; ## no critic
+my $HAS_CPAN_META_REQ = eval "require $cpan_meta_req; $cpan_meta_req->VERSION('2.120900')";
+
+# Verify requirements?
+my $DO_VERIFY_PREREQS = 1;
+
+sub _merge_requires {
+    my ($collector, $prereqs) = @_;
+    for my $phase ( qw/configure build test runtime develop/ ) {
+        next unless exists $prereqs->{$phase};
+        if ( my $req = $prereqs->{$phase}{'requires'} ) {
+            my $cmr = CPAN::Meta::Requirements->from_string_hash( $req );
+            $collector->add_requirements( $cmr );
+        }
+    }
+}
+
+my %include = map {; $_ => 1 } qw(
+
+);
+
+my %exclude = map {; $_ => 1 } qw(
+
+);
+
+# Add static prereqs to the included modules list
+my $static_prereqs = do { my $x = {
+       'configure' => {
+                        'requires' => {
+                                        'ExtUtils::MakeMaker' => '6.17'
+                                      }
+                      },
+       'develop' => {
+                      'requires' => {
+                                      'Dist::Zilla' => '5.013',
+                                      'Dist::Zilla::PluginBundle::DAGOLDEN' => '0.060',
+                                      'File::Spec' => '0',
+                                      'File::Temp' => '0',
+                                      'IO::Handle' => '0',
+                                      'IPC::Open3' => '0',
+                                      'Pod::Coverage::TrustPod' => '0',
+                                      'Test::CPAN::Meta' => '0',
+                                      'Test::More' => '0',
+                                      'Test::Pod' => '1.41',
+                                      'Test::Pod::Coverage' => '1.08'
+                                    }
+                    },
+       'runtime' => {
+                      'requires' => {
+                                      'Exception::Class' => '0',
+                                      'Exporter' => '0',
+                                      'perl' => '5.006',
+                                      'strict' => '0',
+                                      'warnings' => '0'
+                                    }
+                    },
+       'test' => {
+                   'recommends' => {
+                                     'CPAN::Meta' => '0',
+                                     'CPAN::Meta::Requirements' => '2.120900'
+                                   },
+                   'requires' => {
+                                   'ExtUtils::MakeMaker' => '0',
+                                   'File::Spec::Functions' => '0',
+                                   'List::Util' => '0',
+                                   'Test::More' => '0',
+                                   'overload' => '0',
+                                   'version' => '0'
+                                 }
+                 }
+     };
+  $x;
+ };
+
+delete $static_prereqs->{develop} if not $ENV{AUTHOR_TESTING};
+$include{$_} = 1 for map { keys %$_ } map { values %$_ } values %$static_prereqs;
+
+# Merge requirements for major phases (if we can)
+my $all_requires;
+if ( $DO_VERIFY_PREREQS && $HAS_CPAN_META_REQ ) {
+    $all_requires = $cpan_meta_req->new;
+    _merge_requires($all_requires, $static_prereqs);
+}
+
+
+# Add dynamic prereqs to the included modules list (if we can)
+my ($source) = grep { -f } 'MYMETA.json', 'MYMETA.yml';
+if ( $source && $HAS_CPAN_META ) {
+  if ( my $meta = eval { CPAN::Meta->load_file($source) } ) {
+    my $dynamic_prereqs = $meta->prereqs;
+    delete $dynamic_prereqs->{develop} if not $ENV{AUTHOR_TESTING};
+    $include{$_} = 1 for map { keys %$_ } map { values %$_ } values %$dynamic_prereqs;
+
+    if ( $DO_VERIFY_PREREQS && $HAS_CPAN_META_REQ ) {
+        _merge_requires($all_requires, $dynamic_prereqs);
+    }
+  }
+}
+else {
+  $source = 'static metadata';
+}
+
+my @modules = sort grep { ! $exclude{$_} } keys %include;
+my @reports = [qw/Version Module/];
+my @dep_errors;
+my $req_hash = defined($all_requires) ? $all_requires->as_string_hash : {};
+
+for my $mod ( @modules ) {
+  next if $mod eq 'perl';
+  my $file = $mod;
+  $file =~ s{::}{/}g;
+  $file .= ".pm";
+  my ($prefix) = grep { -e catfile($_, $file) } @INC;
+  if ( $prefix ) {
+    my $ver = MM->parse_version( catfile($prefix, $file) );
+    $ver = "undef" unless defined $ver; # Newer MM should do this anyway
+    push @reports, [$ver, $mod];
+
+    if ( $DO_VERIFY_PREREQS && $all_requires ) {
+      my $req = $req_hash->{$mod};
+      if ( defined $req && length $req ) {
+        if ( ! defined eval { version->parse($ver) } ) {
+          push @dep_errors, "$mod version '$ver' cannot be parsed (version '$req' required)";
+        }
+        elsif ( ! $all_requires->accepts_module( $mod => $ver ) ) {
+          push @dep_errors, "$mod version '$ver' is not in required range '$req'";
+        }
+      }
+    }
+
+  }
+  else {
+    push @reports, ["missing", $mod];
+
+    if ( $DO_VERIFY_PREREQS && $all_requires ) {
+      my $req = $req_hash->{$mod};
+      if ( defined $req && length $req ) {
+        push @dep_errors, "$mod is not installed (version '$req' required)";
+      }
+    }
+  }
+}
+
+if ( @reports ) {
+  my $vl = max map { length $_->[0] } @reports;
+  my $ml = max map { length $_->[1] } @reports;
+  splice @reports, 1, 0, ["-" x $vl, "-" x $ml];
+  diag "\nVersions for all modules listed in $source (including optional ones):\n",
+    map {sprintf("  %*s %*s\n",$vl,$_->[0],-$ml,$_->[1])} @reports;
+}
+
+if ( @dep_errors ) {
+  diag join("\n",
+    "\n*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***\n",
+    "The following REQUIRED prerequisites were not satisfied:\n",
+    @dep_errors,
+    "\n"
+  );
+}
+
+pass;
+
+# vim: ts=4 sts=4 sw=4 et:
@@ -1,17 +1,16 @@
-# Exception::Class::TryCatch  
+# Exception::Class::TryCatch
 use strict;
 
-use Test::More tests =>  45 ;
+use Test::More tests => 45;
 
 use Exception::Class::TryCatch qw( try catch caught );
 use Exception::Class 'My::Exception::Class', 'My::Other::Exception';
 
 package My::Exception::Class;
 # check for bug when some Exception class stringifies to empty string
-use overload 
-  q{""} => sub { return '' },
-  fallback => 1
-;
+use overload
+  q{""}    => sub { return '' },
+  fallback => 1;
 
 package main;
 
@@ -23,16 +22,16 @@ my $e;
 
 eval { My::Exception::Class->throw('error1') };
 $e = catch;
-ok ( $e, "Caught My::Exception::Class error1" );
-isa_ok ( $e, 'Exception::Class::Base' );
-isa_ok ( $e, 'My::Exception::Class' );
-is ( $e->error, 'error1', "Exception is 'error1'" );
+ok( $e, "Caught My::Exception::Class error1" );
+isa_ok( $e, 'Exception::Class::Base' );
+isa_ok( $e, 'My::Exception::Class' );
+is( $e->error, 'error1', "Exception is 'error1'" );
 
 eval { My::Exception::Class->throw('error2'); };
 $e = catch;
-ok ( $e, "Caught My::Exception::Class error2" );
-isa_ok ( $e, 'My::Exception::Class' );
-is ( $e->error, 'error2', "Exception is 'error2'" );
+ok( $e, "Caught My::Exception::Class error2" );
+isa_ok( $e, 'My::Exception::Class' );
+is( $e->error, 'error2', "Exception is 'error2'" );
 
 #--------------------------------------------------------------------------#
 # Test handling of normal die (not Exception::Class throw() )
@@ -40,21 +39,21 @@ is ( $e->error, 'error2', "Exception is 'error2'" );
 
 eval { die "error3" };
 $e = catch;
-ok ( $e, "Caught 'die error3'" );
-isa_ok ( $e, 'Exception::Class::Base' );
-like ( $e->error, qr/^error3 at/, "Exception is 'error3 at...'" );
+ok( $e, "Caught 'die error3'" );
+isa_ok( $e, 'Exception::Class::Base' );
+like( $e->error, qr/^error3 at/, "Exception is 'error3 at...'" );
 
 eval { die 0 };
 $e = catch;
-ok ( $e, "Caught 'die 0'" );
-isa_ok ( $e, 'Exception::Class::Base' );
-like ( $e->error, qr/^0 at/, "Exception is '0 at...'" );
+ok( $e, "Caught 'die 0'" );
+isa_ok( $e, 'Exception::Class::Base' );
+like( $e->error, qr/^0 at/, "Exception is '0 at...'" );
 
 eval { die };
 $e = catch;
-ok ( $e, "Caught 'die'" );
-isa_ok ( $e, 'Exception::Class::Base' );
-like ( $e->error, qr/^Died at/, "Exception is 'Died at...'" );
+ok( $e, "Caught 'die'" );
+isa_ok( $e, 'Exception::Class::Base' );
+like( $e->error, qr/^Died at/, "Exception is 'Died at...'" );
 
 #--------------------------------------------------------------------------#
 # Test handling of non-dying evals
@@ -62,11 +61,11 @@ like ( $e->error, qr/^Died at/, "Exception is 'Died at...'" );
 
 eval { 1 };
 $e = catch;
-is ($e, undef, "Didn't catch eval of 1" );
+is( $e, undef, "Didn't catch eval of 1" );
 
 eval { 0 };
 $e = catch;
-is ($e, undef, "Didn't catch eval of 0" );
+is( $e, undef, "Didn't catch eval of 0" );
 
 #--------------------------------------------------------------------------#
 # Test catch (my e) syntax-- pass by reference
@@ -74,26 +73,26 @@ is ($e, undef, "Didn't catch eval of 0" );
 
 eval { My::Exception::Class->throw('error'); };
 catch my $err;
-is ( $err->error, 'error', "catch X syntax worked" );
+is( $err->error, 'error', "catch X syntax worked" );
 
 #--------------------------------------------------------------------------#
 # Test caught synonym
 #--------------------------------------------------------------------------#
- 
+
 undef $err;
-eval { My::Exception::Class->throw( "error" ) };
+eval { My::Exception::Class->throw("error") };
 caught $err;
-is ( $err->error, 'error', "caught synonym worked" );
+is( $err->error, 'error', "caught synonym worked" );
 
 #--------------------------------------------------------------------------#
 # Test catch setting error variable to undef if no error
 #--------------------------------------------------------------------------#
 
-eval { My::Exception::Class->throw( "error" ) };
+eval { My::Exception::Class->throw("error") };
 catch $err;
 eval { 1 };
 catch $err;
-is ( $err, undef, "catch undefs a passed error variable if no error" );
+is( $err, undef, "catch undefs a passed error variable if no error" );
 
 #--------------------------------------------------------------------------#
 # Test try passing through results of eval
@@ -103,38 +102,35 @@ my $test_val = 23;
 my @test_vals = ( 1, 2, 3 );
 
 my $rv = try eval { return $test_val };
-is( $rv, $test_val, 
-    "try in scalar context passes through result of eval" );
+is( $rv, $test_val, "try in scalar context passes through result of eval" );
 
 $rv = try eval { return \@test_vals };
-is( $rv, \@test_vals,
-    "try in scalar context passes an array ref as is" );
+is( $rv, \@test_vals, "try in scalar context passes an array ref as is" );
 
 my @rv = try [ eval { return @test_vals } ];
-is_deeply( \@rv, \@test_vals, 
+is_deeply( \@rv, \@test_vals,
     "try in list context dereferences an array ref passed to it" );
 
 @rv = try eval { return $test_val };
-is_deeply( \@rv, [ $test_val ],
-    "try in list context passes through a scalar return" );
-    
+is_deeply( \@rv, [$test_val], "try in list context passes through a scalar return" );
+
 #--------------------------------------------------------------------------#
 # Test simple try/catch
 #--------------------------------------------------------------------------#
 
-$rv = try eval { My::Exception::Class->throw( "error" ) };
+$rv = try eval { My::Exception::Class->throw("error") };
 catch $err;
-is ( $rv, undef, "try gets undef on exception" );
-is ( $err->error, 'error', "simple try/catch works" );
+is( $rv,         undef,   "try gets undef on exception" );
+is( $err->error, 'error', "simple try/catch works" );
 
 #--------------------------------------------------------------------------#
 # Test try/catch to array
 #--------------------------------------------------------------------------#
 
-$rv = try eval { My::Exception::Class->throw( "error" ) };
+$rv = try eval { My::Exception::Class->throw("error") };
 my @err = catch;
-is ( scalar @err, 1, '@array = catch' );
-is ( $err[0]->error, 'error', 'array catch works' );
+is( scalar @err,    1,       '@array = catch' );
+is( $err[0]->error, 'error', 'array catch works' );
 
 #--------------------------------------------------------------------------#
 # Test try/catch to array -- no error
@@ -142,7 +138,7 @@ is ( $err[0]->error, 'error', 'array catch works' );
 
 $rv = try eval { 42 };
 @err = catch;
-is ( scalar @err, 0, 'array catch with no error returns empty array' );
+is( scalar @err, 0, 'array catch with no error returns empty array' );
 
 #--------------------------------------------------------------------------#
 # Test multiple try/catch with double error
@@ -152,87 +148,85 @@ my $inner_err;
 my $outer_err;
 
 for my $out ( 0, 1 ) {
-	for my $in (0, 1 ) {
-		try eval { $out ? My::Exception::Class->throw( "outer" ) : 1 };
-		try eval { $in ? My::Exception::Class->throw( "inner" ) : 1};
-		catch $inner_err;
-		catch $outer_err;
-		if ($in) {
-			is ( $inner_err->error, "inner", 
-				"Inner try caught correctly in case ($out,$in)" );
-		}
-		else {
-			is ( $inner_err, undef,
-				"Inner try caught correctly in case ($out,$in)" );
-		}
-		if ($out) {
-			is ( $outer_err->error, "outer", 
-				"Outer try caught correctly in case ($out,$in)" );
-		}
-		else {
-			is ( $outer_err, undef,
-				"Outer try caught correctly in case ($out,$in)" );
-		}
-	}
+    for my $in ( 0, 1 ) {
+        try eval { $out ? My::Exception::Class->throw("outer") : 1 };
+        try eval { $in  ? My::Exception::Class->throw("inner") : 1 };
+        catch $inner_err;
+        catch $outer_err;
+        if ($in) {
+            is( $inner_err->error, "inner", "Inner try caught correctly in case ($out,$in)" );
+        }
+        else {
+            is( $inner_err, undef, "Inner try caught correctly in case ($out,$in)" );
+        }
+        if ($out) {
+            is( $outer_err->error, "outer", "Outer try caught correctly in case ($out,$in)" );
+        }
+        else {
+            is( $outer_err, undef, "Outer try caught correctly in case ($out,$in)" );
+        }
+    }
 }
 
-#--------------------------------------------------------------------------#    
+#--------------------------------------------------------------------------#
 # Test catch rethrowing unless a list is matched -- one argument version
 #--------------------------------------------------------------------------#
 
 {
 
-    try eval { 
-        try eval { My::Exception::Class->throw( "error" ) };
-        $err = catch( ['My::Other::Exception'] ); 
-        diag( "Shouldn't be here because \$err is a " . 
-               ref($err) . " not a My::Other::Exception." );
+    try eval {
+        try eval { My::Exception::Class->throw("error") };
+        $err = catch( ['My::Other::Exception'] );
+        diag(   "Shouldn't be here because \$err is a "
+              . ref($err)
+              . " not a My::Other::Exception." );
     };
 
     catch $outer_err;
 }
-ok( UNIVERSAL::isa($outer_err, 'My::Exception::Class'), 
-    "catch not matching list should rethrow -- single arg version");
-
-eval { 
-    eval { My::Exception::Class->throw( "error" ) };
-    $err = catch( ['My::Exception::Class'] ); 
+ok(
+    UNIVERSAL::isa( $outer_err, 'My::Exception::Class' ),
+    "catch not matching list should rethrow -- single arg version"
+);
+
+eval {
+    eval { My::Exception::Class->throw("error") };
+    $err = catch( ['My::Exception::Class'] );
 };
-is( $@, q{}, "catch matching list lives -- single arg version");
+is( $@, q{}, "catch matching list lives -- single arg version" );
 
 eval { 1 };
 $e = catch ['My::Exception::Class'];
-is ( $e, undef, 
-    "catch returns undef if no error -- single arg version" );
+is( $e, undef, "catch returns undef if no error -- single arg version" );
 
-#--------------------------------------------------------------------------#    
+#--------------------------------------------------------------------------#
 # Test catch rethrowing unless a list is matched -- two argument version
 #--------------------------------------------------------------------------#
 
 {
 
-    try eval { 
-        try eval { My::Exception::Class->throw( "error" ) };
-        catch( $err, ['My::Other::Exception'] ); 
-        diag( "Shouldn't be here unless " . 
-               ref($err) . " is a My::Other::Exception." );
+    try eval {
+        try eval { My::Exception::Class->throw("error") };
+        catch( $err, ['My::Other::Exception'] );
+        diag( "Shouldn't be here unless " . ref($err) . " is a My::Other::Exception." );
     };
 
     catch $outer_err;
 }
-ok( UNIVERSAL::isa($outer_err, 'My::Exception::Class'), 
-    "catch not matching list should rethrow -- two arg version");
-
-eval { 
-    eval { My::Exception::Class->throw( "error" ) };
-    catch( $err, ['My::Exception::Class'] ); 
+ok(
+    UNIVERSAL::isa( $outer_err, 'My::Exception::Class' ),
+    "catch not matching list should rethrow -- two arg version"
+);
+
+eval {
+    eval { My::Exception::Class->throw("error") };
+    catch( $err, ['My::Exception::Class'] );
 };
 is( $@, q{}, "catch matching list lives -- two arg version" );
 
 eval { 1 };
 $e = catch $err, ['My::Exception::Class'];
-is ( $e, undef, 
-    "catch returns undef if no error -- two arg version" );
-is ( $err, undef, 
-    "catch undefs a passed error variable if no error -- two arg version");
+is( $e, undef, "catch returns undef if no error -- two arg version" );
+is( $err, undef,
+    "catch undefs a passed error variable if no error -- two arg version" );
 
@@ -0,0 +1,5 @@
+; Install Code::TidyAll
+; run "tidyall -a" to tidy all files
+; run "tidyall -g" to tidy only files modified from git
+[PerlTidy]
+select = {lib,t}/**/*.{pl,pm,t}
@@ -0,0 +1,53 @@
+use 5.006;
+use strict;
+use warnings;
+
+# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.039
+
+use Test::More  tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
+
+
+
+my @module_files = (
+    'Exception/Class/TryCatch.pm'
+);
+
+
+
+# fake home for cpan-testers
+use File::Temp;
+local $ENV{HOME} = File::Temp::tempdir( CLEANUP => 1 );
+
+
+my $inc_switch = -d 'blib' ? '-Mblib' : '-Ilib';
+
+use File::Spec;
+use IPC::Open3;
+use IO::Handle;
+
+open my $stdin, '<', File::Spec->devnull or die "can't open devnull: $!";
+
+my @warnings;
+for my $lib (@module_files)
+{
+    # see L<perlfaq8/How can I capture STDERR from an external command?>
+    my $stderr = IO::Handle->new;
+
+    my $pid = open3($stdin, '>&STDERR', $stderr, $^X, $inc_switch, '-e', "require q[$lib]");
+    binmode $stderr, ':crlf' if $^O eq 'MSWin32';
+    my @_warnings = <$stderr>;
+    waitpid($pid, 0);
+    is($?, 0, "$lib loaded ok");
+
+    if (@_warnings)
+    {
+        warn @_warnings;
+        push @warnings, @_warnings;
+    }
+}
+
+
+
+is(scalar(@warnings), 0, 'no warnings found') if $ENV{AUTHOR_TESTING};
+
+
@@ -0,0 +1,12 @@
+#!perl
+
+use strict;
+use warnings;
+
+use Test::More;
+use English qw(-no_match_vars);
+
+eval "use Test::Perl::Critic";
+plan skip_all => 'Test::Perl::Critic required to criticise code' if $@;
+Test::Perl::Critic->import( -profile => "perlcritic.rc" ) if -e "perlcritic.rc";
+all_critic_ok();
@@ -0,0 +1,23 @@
+use strict;
+use warnings;
+use Test::More;
+
+# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006005
+use Test::Spelling 0.12;
+use Pod::Wordlist;
+
+
+add_stopwords(<DATA>);
+all_pod_files_spelling_ok( qw( bin lib  ) );
+__DATA__
+Perrin
+Rolsky
+perlmonks
+perrin
+David
+Golden
+dagolden
+lib
+Exception
+Class
+TryCatch
@@ -1,15 +0,0 @@
-# Copyright (c) 2008 by David Golden. All rights reserved.
-# Licensed under Apache License, Version 2.0 (the "License").
-# You may not use this file except in compliance with the License.
-# A copy of the License was distributed with this file or you may obtain a 
-# copy of the License from http://www.apache.org/licenses/LICENSE-2.0
-
-use strict;
-use warnings;
-use File::Spec;
-use Test::More;
-require Test::Perl::Critic;
-
-my $rcfile = File::Spec->catfile( 'xt', 'perlcriticrc' );
-Test::Perl::Critic->import( -profile => $rcfile );
-all_critic_ok( 'lib', 'examples'  );
@@ -1,20 +0,0 @@
-severity = 5
-verbose = 8
-
-[Variables::ProhibitPunctuationVars]
-allow = $@ $!
-
-# Turn these off
-[-BuiltinFunctions::ProhibitStringyEval]
-[-ControlStructures::ProhibitPostfixControls]
-[-ControlStructures::ProhibitUnlessBlocks]
-[-Documentation::RequirePodSections]
-[-InputOutput::ProhibitInteractiveTest]
-[-Miscellanea::RequireRcsKeywords]
-[-References::ProhibitDoubleSigils]
-[-RegularExpressions::RequireExtendedFormatting]
-[-InputOutput::ProhibitTwoArgOpen]
-
-# Turn this on
-[Lax::ProhibitStringyEval::ExceptForRequire]
-
@@ -1,29 +0,0 @@
-# Copyright (c) 2008 by David Golden. All rights reserved.
-# Licensed under Apache License, Version 2.0 (the "License").
-# You may not use this file except in compliance with the License.
-# A copy of the License was distributed with this file or you may obtain a 
-# copy of the License from http://www.apache.org/licenses/LICENSE-2.0
-
-use Test::More;
-
-my $min_tpc = 1.08;
-eval "use Test::Pod::Coverage $min_tpc";
-plan skip_all => "Test::Pod::Coverage $min_tpc required for testing POD coverage"
-    if $@;
-
-my $min_pc = 0.17;
-eval "use Pod::Coverage $min_pc";
-plan skip_all => "Pod::Coverage $min_pc required for testing POD coverage"
-    if $@;
-
-my @modules = all_modules('lib');
-
-plan tests => scalar @modules; 
-
-for my $mod ( @modules ) {
-    my $doc = "lib/$mod";
-    $doc =~ s{::}{/}g;
-    $doc = -f "$doc\.pod" ? "$doc\.pod" : "$doc\.pm" ;
-    pod_coverage_ok( $mod, { pod_from => $doc } );
-}
-
@@ -1,13 +0,0 @@
-# Copyright (c) 2008 by David Golden. All rights reserved.
-# Licensed under Apache License, Version 2.0 (the "License").
-# You may not use this file except in compliance with the License.
-# A copy of the License was distributed with this file or you may obtain a 
-# copy of the License from http://www.apache.org/licenses/LICENSE-2.0
-
-use Test::More;
-
-my $min_tp = 1.22;
-eval "use Test::Pod $min_tp";
-plan skip_all => "Test::Pod $min_tp required for testing POD" if $@;
-
-all_pod_files_ok();
@@ -0,0 +1,6 @@
+#!perl
+# This file was automatically generated by Dist::Zilla::Plugin::MetaTests.
+
+use Test::CPAN::Meta;
+
+meta_yaml_ok();
@@ -0,0 +1,8 @@
+#!perl
+
+use Test::More;
+
+eval "use Test::MinimumVersion";
+plan skip_all => "Test::MinimumVersion required for testing minimum versions"
+  if $@;
+all_minimum_version_ok( qq{5.010} );
@@ -0,0 +1,7 @@
+#!perl
+# This file was automatically generated by Dist::Zilla::Plugin::PodCoverageTests.
+
+use Test::Pod::Coverage 1.08;
+use Pod::Coverage::TrustPod;
+
+all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::TrustPod' });
@@ -0,0 +1,6 @@
+#!perl
+# This file was automatically generated by Dist::Zilla::Plugin::PodSyntaxTests.
+use Test::More;
+use Test::Pod 1.41;
+
+all_pod_files_ok();
@@ -0,0 +1,12 @@
+#!perl
+
+use strict;
+use warnings;
+
+use Test::More;
+
+eval 'use Test::Portability::Files';
+plan skip_all => 'Test::Portability::Files required for testing portability'
+    if $@;
+options(test_one_dot => 0);
+run_tests();
@@ -0,0 +1,22 @@
+use strict;
+use warnings;
+use Test::More;
+
+# generated by Dist::Zilla::Plugin::Test::Version 0.002004
+BEGIN { eval "use Test::Version; 1;" or die $@; }
+
+my @imports = ( 'version_all_ok' );
+
+my $params = {
+    is_strict   => 0,
+    has_version => 1,
+};
+
+push @imports, $params
+    if version->parse( $Test::Version::VERSION ) >= version->parse('1.002');
+
+
+Test::Version->import(@imports);
+
+version_all_ok;
+done_testing;
@@ -1,21 +0,0 @@
-# Copyright (c) 2008 by David Golden. All rights reserved.
-# Licensed under Apache License, Version 2.0 (the "License").
-# You may not use this file except in compliance with the License.
-# A copy of the License was distributed with this file or you may obtain a 
-# copy of the License from http://www.apache.org/licenses/LICENSE-2.0
-
-use Test::More;
-use IO::File;
-
-my $min_tps = 0.11;
-eval "use Test::Spelling $min_tps";
-plan skip_all => "Test::Spelling $min_tps required for testing POD" if $@;
-system( "ispell -v" ) and plan skip_all => "No ispell";
-
-set_spell_cmd( "ispell -l" );
-
-my $swf = IO::File->new('xt/stopwords.txt');
-my @stopwords = grep { length } map { chomp; $_ } <$swf>;
-add_stopwords( @stopwords );
-
-all_pod_files_spelling_ok();
@@ -1,10 +0,0 @@
-CPAN
-CTRL
-DAGOLDEN
-Foo
-MSWin
-README
-STDERR
-STDOUT
-XS
-html