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>

Reply via email to