use List::Util qw(max); my @users = grep /\S/, <DATA>; my $max = max /^(\d+)/, @users; ++$max; print @users, "$max|Rudif|scribe\n";
-- Randal L. Schwartz, Perl hacker
In reply to Re: Re: Storing Info in a text File
by merlyn
in thread Storing Info in a text File
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |