Moriarty has asked for the wisdom of the Perl Monks concerning the following question:
Hello Fellow Monks
I have a problem that I beleive should be quite simple but I just don't know the syntax for what I want to do.
I have a file containing lots of documents separated by checkpoints identified by the special sequence af characters at the start of the line. Within the checpoint is a unique identifier.
In another file, I have a list of unique identifiers that I want to use to modify the checkpoint.
If I slurp the list of IDs into an array, then read the documents in one line at a time, how can I tell if any of the IDs in the ID list are contained in the checkpoint
Thanks in advance
Moriarty
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Finding a variable string within a variable string.
by BrowserUk (Patriarch) on Dec 14, 2004 at 07:11 UTC | |
|
Re: Finding a variable string within a variable string.
by sasikumar (Monk) on Dec 14, 2004 at 09:46 UTC | |
|
Re: Finding a variable string within a variable string.
by ysth (Canon) on Dec 14, 2004 at 10:24 UTC | |
|
Re: Finding a variable string within a variable string.
by Moriarty (Abbot) on Dec 14, 2004 at 21:04 UTC | |
by Eimi Metamorphoumai (Deacon) on Dec 14, 2004 at 21:13 UTC | |
by Moriarty (Abbot) on Dec 14, 2004 at 22:00 UTC | |
|
Re: Finding a variable string within a variable string.
by dragonchild (Archbishop) on Dec 14, 2004 at 14:09 UTC |