in reply to Re: Duplicate data record
in thread Duplicate data record
But still, it's better not to read in the whole file (did you know foreach() slurps the file before processing it?)$found = scalar grep { /^\Q$name\|/i } <FILE>;
while (<FILE>) { $found = 1 if /^\Q$name\|/i }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Duplicate data record
by strat (Canon) on Dec 20, 2001 at 19:03 UTC | |
by Juerd (Abbot) on Dec 20, 2001 at 19:09 UTC | |
by strat (Canon) on Dec 20, 2001 at 19:21 UTC | |
by britney (Acolyte) on Dec 22, 2001 at 03:39 UTC |