my $max = 0; while (my @one = getpwent) { $max = $one[2] if $max < $one[2]; } print $max + 1, "\n";
-- Randal L. Schwartz, Perl hacker
In reply to Re: Getting Next Available Userid
by merlyn
in thread Getting Next Available Userid
by dnickel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |