Subject: | UNIVERSAL::require 'fatal' |
Date: | Sun, 12 Nov 2006 18:11:53 -0600 |
To: | bug-UNIVERSAL-require [...] rt.cpan.org |
From: | Michael G Schwern <schwern [...] gmail.com> |
Show quoted text
-------- Original Message --------
Subject: UNIVERSAL::require patch and tarball
Date: Mon, 14 Aug 2006 11:28:03 -0700 (PDT)
From: Ovid <curtis_ovid_poe@yahoo.com>
Reply-To: Ovid <curtis_ovid_poe@yahoo.com>
To: Michael Schwern <schwern@gmail.com>, Michael G Schwern <schwern@pobox.com>
Hi Michael,
I've included both a patch and a tarball for UNIVERSAL::require. This change passes all original tests and appears to be completely backwards compatible with previous versions. However, now instead of this:
use UNIVERSAL::require;
$module1->require or die $@;
$module2->use or die $@;
You can do this:
use UNIVERSAL::require 'fatal';
$module1->require;
$module2->use;
Tests are included, and the POD, Changes and MANIFEST files have been updated.
Cheers,
Curtis
-- Buy the book -- http://www.oreilly.com/catalog/perlhks/
Perl and CGI -- http://users.easystreet.com/ovid/cgi_course/
Message body is not shown because sender requested not to inline it.
Message body not shown because it is not plain text.