in reply to Useless Program
Try this:
You may want to quote any meta-characters in the name:if (/^$name$/i) {
Your other, bigger problem, as cds pointed out, is that you're only searching the first line. If the match isn't in the first line, you then ask whether or not to add the name. You'll want to fix this.if (/^\Q$name\E$/i) {
My suggestion, in fact, would be to use a DBM file. DB_File, perhaps.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Useless Program
by BBQ (Curate) on Jun 02, 2000 at 00:17 UTC | |
by ivory (Pilgrim) on Jun 02, 2000 at 03:12 UTC | |
by btrott (Parson) on Jun 02, 2000 at 00:24 UTC | |
by BBQ (Curate) on Jun 02, 2000 at 00:32 UTC |