OK ok I should have expounded! I would set up a hash from the files contents with the name as the key and the value as the number! On Thu, 28 Feb 2002, Paul Murphy wrote: > > Thanks for the advice Luke, but I don't quite get what you are saying. > > If I copy the contents of /etc/protocols into my Perl script, then surely it > will just fail to compile? > > Paul. > > > >From: Luke Bakken Reply-To: luke_bakken@yahoo.com To: Paul Murphy CC: > >beginners@perl.org Subject: RE: No access to /etc/protocols Date: Thu, 28 > >Feb 2002 08:08:14 -0800 (PST) On Thu, 28 Feb 2002, Paul Murphy wrote: > > > > > > This *is* my new ISP. I understand their stance, they work are working > > > from a standard security perspective. "Don't open it unless you need > > >to". This is an admirable stance, although misapplied in this case. > You > >always have to strike a balance between security and funcionality > and I > >feel that they have erred more on the side of security than is > necessary > >and so removed a fundamental part of functionality. > > So I need to work > >around the problem. > > > > >Copy /etc/protocols from another machine into your perl script literally. I > >doubt the protocol numbers will be changing anytime soon. > > > >And not making /etc/protocols world-readable will not make a system one bit > >more secure, just more annoying to use. Security by obscurity doesn't work. > > > > > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. > > > -- > To unsubscribe, e-mail: beginners-unsubscribe@perl.org > For additional commands, e-mail: beginners-help@perl.org >Thread Previous | Thread Next