[Nolug] PERL Question

From: Wimprine, Thomas <twimprine_at_stei.com>
Date: Thu, 14 Oct 2004 08:29:17 -0500
Message-ID: <7A727C65F1901E46BBFE6D9C4C5D82FC0255DFB7@lajeffeex02.stewartenterprises.com>

I have a script I'm working on and am stuck simply because I don't know Perl
and need a little assistance.

I have a script I execute from the command line with arguments (server
names), I need to know how to match those arguments (@ARGV) with an array
(@list) and throw away all values that do not match.

Logdisk.pl server1 server2

If $ARGV[$num] != $list[$num]
        Discard;
Else
        Next;

Thanks
___________________
Nolug mailing list
nolug@nolug.org
Received on 10/14/04

This archive was generated by hypermail 2.2.0 : 12/19/08 EST