Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

using Exporter in <Perl> block in mod_perl

by cLive ;-) (Prior)
on Sep 02, 2014 at 20:23 UTC ( [id://1099310]=perlquestion: print w/replies, xml ) Need Help??

cLive ;-) has asked for the wisdom of the Perl Monks concerning the following question:

I haven't done any old school mod_perl in a while, and I'm not sure if this is a coding style issue, global var issue or if I need to set something before implementing this or what...

There's a config module that loads configuration values and uses Exporter to expose $config in @EXPORT_OK. When I try to import it in a <Perl> block though, it throws an error. Here's the code (snipped)

<Perl> use XXX::Config qw($config); </Perl>

And the error I get is:

error (22)Invalid argument: <Perl>: Invalid command 'config', 
perhaps mis-spelled or defined by a module not included in the server
configuration

I'm not really sure where this issue is coming from. Anybody have any pointers?

Thanks

Replies are listed 'Best First'.
Re: using Exporter in <Perl> block in mod_perl
by Anonymous Monk on Sep 03, 2014 at 05:15 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2025-06-24 04:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

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