Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
sub access_check { my $user_id = shift; my @allow_users = @_; my %quick_allow = map { $_ => 1 } @allow_users; return $quick_allow{ $user_id }; }
my %ALL_USER_GROUPS = ( 23 => [ qw( g1 g4 ) ], 13 => [ qw( g3 g5 ) ], );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Need help with perl syntax.
by ikegami (Patriarch) on Mar 14, 2008 at 04:00 UTC | |
by jwkrahn (Abbot) on Mar 14, 2008 at 07:18 UTC | |
by ikegami (Patriarch) on Mar 14, 2008 at 14:17 UTC | |
by jwkrahn (Abbot) on Mar 14, 2008 at 19:10 UTC | |
by ikegami (Patriarch) on Mar 14, 2008 at 21:18 UTC | |
|
Re: Need help with perl syntax.
by grizzley (Chaplain) on Mar 14, 2008 at 14:10 UTC | |
|
Re: Need help with perl syntax.
by Anonymous Monk on Mar 14, 2008 at 04:00 UTC | |
by Akoya (Scribe) on Mar 14, 2008 at 15:08 UTC | |
by Anonymous Monk on Mar 15, 2008 at 06:33 UTC | |
by Akoya (Scribe) on Mar 17, 2008 at 19:49 UTC | |
by Anonymous Monk on Mar 18, 2008 at 23:11 UTC |