It's telling you exactly what's wrong - you have not specified any
code for the -e option.
man perl:
SYNOPSIS
perl [ -sTuU ] [ -hv ] [ -V[:configvar] ]
[ -cw ] [ -d[:debugger] ] [ -D[number/list] ]
[ -pna ] [ -Fpattern ] [ -l[octal] ] [ -0[octal] ]
[ -Idir ] [ -m[-]module ] [ -M[-]'module...' ]
[ -P ] [ -S ] [ -x[dir] ]
[ -i[extension] ] [ -e 'command' ] [ -- ] [ programfile ]
[ argu-
ment ]...
In the code snippet I sent I specified some code that tried to pull
in the Socket module (I just copied the first two perl lines of
David's script):
$ perl -e 'use strict; use Socket; print("hello\n");'
perl -e on its own will raise the error you have seen.
If a module is missing you will get something along the lines of:
perl -e 'use no-such-module;'
Can't locate no.pm in @INC (@INC contains: [cut blah-blah-blah]) at -
e line 1.
BEGIN failed--compilation aborted at -e line 1.
But we are wandering well outside the realms of OpenBSD and into
perl. Try http://www.perlmonks.org/ or http://www.perl.com/ as
starting points.
On 19/09/2007, at 3:21 AM, pichi wrote:
The Socket module should also be there:
$ perl -e 'use strict; use Socket; print("hello\n");'
hello
Thanks,
I have perl installed:
$perl -v
$This is perl, v5.8.8 built for i386-openbsd
but it looks like I dont have the socket module becuase when I do:
$perl -e
I get:
$No code specified for -e.
How can I add that module, and again, is is it safe for a publically
accessable firewall?
Many thanks from the newby,
Pedro
--
View this message in context: http://www.nabble.com/Define-hosts-
lookup-for-pf.conf-tf4469900.html#a12759409
Sent from the openbsd user - misc mailing list archive at Nabble.com.