Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: import not found

by Anonyrnous Monk (Hermit)
on Jan 27, 2011 at 15:17 UTC ( [id://884576]=note: print w/replies, xml ) Need Help??


in reply to import not found

I had expected that by compiling Config.pm, the Exporter would inject an import() method

It doesn't.  When you use @ISA='Exporter', the method would be looked up via inheritance.  But you can alternatively directly import Exporter's import method into your package:

use Exporter 'import';

Also, you probably wanted to call import as a method, i.e. using the arrow notation:

Project::Config->import(qw(foo bar));

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://884576]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2025-03-27 17:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (70 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.