Hi Michael,
Could you please explain how your code suggestion below works? I've been
staring at it for a long time but it's not getting any clearer.
It looks like a neat construct but I don't get it... Thanks.
-- Brad
>
> >
############################################################################
> >
> > # setup array of excluded system users (ie. peeps who don't have
> > managers)
> >
############################################################################
> >
> > @exuser= ("root", "daemon", "bin", "sys", "adm", "lp", "uucp", "nuucp",
> > "listen", "nobody", "noaccess", "nobody4");
> >
############################################################################
>
> You're using these values for doing lookups, but you're doing the lookup
> linearly with grep. This is slow, you should use a hash:
>
> my %exuser;
> @exuser{
> qw(root daemon bin sys adm lp uucp nuucp list nobody noaccess nobody4)
> } = ();
>
>
>
> Michael
> --
> Administrator www.shoebox.net
> Programmer, System Administrator www.gallanttech.com
> --
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]