Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Thursday April 17, 2008
07:51 AM

Stupid Import Idea? (

[ #36171 ]

Sometimes you use a module and you don't want everything it exports. Or perhaps it exports nothing.

use from 'Some::Module' => qw/func1 func2/;
# or
use from 'Some::Module' =>
  func1 => { as => 'munge' },  # alias to avoid conflicts

As a concrete example (this allows me to reimplement the other functions it exports by default):

use from 'Test::Exception' => 'throws_ok';


The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.