After which, '$username' will either contain the first unused username from '@usernames', or be undefined, if none were available.my $username; foreach (@usernames) { if (!exists $usernames{$_}) { $username = $_; last; } }
In reply to Re: can I get a loop?
by kilinrax
in thread can I get a loop?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |