XP is just a number | |
PerlMonks |
Re: reiterateing over arrayby injunjoel (Priest) |
on Aug 19, 2008 at 20:55 UTC ( [id://705341]=note: print w/replies, xml ) | Need Help?? |
Greetings, Another way to look at this problem is to use grep to simply see if $user[0] is in your @protected list. However if you are looking for a counter of where in the list $user[0] appears you can add one to your for loop.
-InjunJoel
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo
In Section
Seekers of Perl Wisdom
|
|