in reply to Storing Info in a text File
Rudif#! perl -w use strict; my @users = grep /[^\s]+/, <DATA>; my $max = 0; $max = $_ > $max ? $_ : $max for map { /(\d+)|/; $1 || 0 } @users; ++$max; push @users, "$max|Rudif|scribe\n"; print for @users; __END__ 1|Title|Description 3|Title|Description 4|Title|Description
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Storing Info in a text File
by merlyn (Sage) on Mar 10, 2001 at 20:33 UTC | |
by Rudif (Hermit) on Mar 11, 2001 at 01:37 UTC |