in reply to Re: Storing Info in a text File
in thread Storing Info in a text File
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Storing Info in a text File
by Rudif (Hermit) on Mar 11, 2001 at 01:37 UTC |