Bug#333309: ITP: libuniversal-require-perl -- require modules from a variable
Package: wnpp
Severity: wishlist
Owner: Stephen Quinney <sjq@debian.org>
* Package name : libuniversal-require-perl
Version : 0.10
Upstream Author : Michael G Schwern <schwern@pobox.com>
* URL : http://search.cpan.org/~mschwern/UNIVERSAL-require-0.10/
* License : GPL (>= 1) or Perl Artistic
Description : require modules from a variable
If you've ever had to do this...
.
eval "require $module";
.
to get around the bareword caveats on require(), this module is for
you. It creates a universal require() class method that will work
with every Perl module and its secure. So instead of doing some
arcane eval() work, you can do this:
.
$module->require;
.
It doesn't save you much typing, but it'll make alot more sense to
someone who's not a ninth level Perl acolyte.
.
Also provided is a use() method which works in a similar way.
NOTE
----
This used to be provided as part of the libuniversal-exports-perl
package but upstream has now decided to split it out. Most people were
installing libuniversal-exports-perl just to get at the functionality
of libuniversal-require-perl.
-- System Information:
Debian Release: testing/unstable
APT prefers testing
APT policy: (900, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11.10
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Reply to: