rehgb has asked for the wisdom of the Perl Monks concerning the following question:
So if I have an array of assigned user's levels:
Example:
Bob is at level 1
Barney is at level 4
Homer is at level 3
Mike is at level 3
Tony is at level 3
Matt is at level 2
Jon is at level 2
JJ is at level 2
@approvals = (1, 4, 3, 3, 2, 2, 2);
I will need to check for the highest level then make sure that all the appropriate lower levels exist. In the example above since there is a level 4 there must be at least one employee assigned to levels 3, 2 and 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Check for sequential values in an array that can contain duplicate int values
by andye (Curate) on Dec 16, 2001 at 22:20 UTC | |
by blakem (Monsignor) on Dec 17, 2001 at 03:47 UTC |