in reply to Is 'for' the wrong choice here?

Thanks to all who replied. I kept running into testing all true or else all false and finally gave up on keeping the admins as an array. The code below tests true for all names in $admin_users and no other names. This may be crap programming but it works!
TIA
jg
my $admin_users = "Jason|WAYNE|Rob"; if ($author =~ /($admin_users)/i) { print "$blah"; } else { print "$uber_blah"; }
_____________________________________________________
If it gets a little bit out of hand sometimes, don't let it fool you into thinkin' you don't care.TvZ

Replies are listed 'Best First'.
Re: Re: Is for the wrong choice here?
by grep (Monsignor) on Jan 19, 2002 at 02:29 UTC
    This does not do quite what you want.

     $author = 'John_Wayne_Bobbit';
    This will evaluate to true, but according your $admin you do not want any porn stars accessing your program.

    If you follow my post above and use an array of names you will be fine.

    grep
    grep> cd pub
    grep> more beer