Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 contemplating the Monastery: (3)
As of 2024-04-24 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found