Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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: (2)
As of 2026-02-12 07:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.