Re: failure using Socket in PerlSection

Mark Heiges <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Nov 9, 2012, at 10:36 PM, Mark Heiges wrote:

> I have a name-based virtual host and want to use Socket.pm in a PerlSection:
> 
> <Perl>
> use Socket;
> </Perl>
> 
> but when starting httpd I get the error,
> 
> $parms->add_config() has failed: Invalid command 'INADDR_ANY', perhaps misspelled or defined by a module not included in the server configuration at /usr/lib64/perl5/Apache2/PerlSections.pm line 215.\n

Nevermind. I can selectively export only the symbols I need.

<Perl>
use Socket qw(inet_ntoa);
</Perl>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.