
FishMonger
Veteran
Aug 28, 2012, 7:58 AM
Post #2 of 5
(715 views)
|
|
Re: [runner16] Help updating a simple if statement
[In reply to]
|
Can't Post
|
|
Instead of extending the if statement, my recommendation would be to crate a hash of the authorized users and then do a simple and efficient hash lookup.
my %authorized_user = ( 'user1' => 1, 'user2' => 1, 'user3' => 1, ); if ( ! $authorized_user{$regname} ) {
|