perllearner007 has asked for the wisdom of the Perl Monks concerning the following question:
I want to input this file(which is much larger) and read in a name for eg: Kate. I want the script to read Kate, recognize it's family tag i.e it contains "Rhodes" and then output the other family member i.e Shirley. Is there a way to do this? The output file will look like thisID NAME FAMILYTAG EFFECT 001 John Black Positive 002 Kate Rhodes, Mich Positive 003 Aaron Sunders Negative 004 Shirley Rhodes Negative 005 Dexter Sunders Positive
I was thinking maybe some sort of pattern match might work for such a script? Am I thinking in the right direction?Kate Rhodes Shirley Rhodes
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: read a name, recognise a tag and output
by toolic (Bishop) on Apr 26, 2012 at 16:56 UTC | |
by perllearner007 (Acolyte) on Apr 26, 2012 at 18:12 UTC | |
by perllearner007 (Acolyte) on Apr 26, 2012 at 20:52 UTC | |
|
Re: read a name, recognise a tag and output
by ww (Archbishop) on Apr 26, 2012 at 16:34 UTC | |
by perllearner007 (Acolyte) on Apr 26, 2012 at 16:38 UTC | |
|
Re: read a name, recognise a tag and output
by RichardK (Parson) on Apr 26, 2012 at 16:36 UTC |