$Sp[0] = "gsmith"; $Sp[1] = "rsmith"; if( ! inArray( $salesperson, \@Sp ) ) { return E_INVALID_SALESPERSON; }