Keep It Simple, Stupid | |
PerlMonks |
Re^4: comparing file contentsby Anonymous Monk |
on Nov 22, 2011 at 16:23 UTC ( [id://939486]=note: print w/replies, xml ) | Need Help?? |
I have two files namely ICD-Codes-text which is tab format and other file named female.txt which has been split word by word . i need to compare the contents of female1.txt to ICD-codes file 0th array values. If there is a match then the matched value in female1.txt should be replaced with ICD-code files corresponding 1st array value. I am a beginner in PERL. I tried to write some code but i do not know where am going wrong or its completely wrong. Help me with this please
file samples ICD.codes-text z988 Z98.8 - Andra specificerade postoperativa tillstånd z99 Z99 - Beroende av maskinella och andra hjälpmedel som ej klassificeras annorstädes z990 Z99.0 - Beroende av aspirationshjälpmedel z991 Z99.1 - Beroende av respirator z992 Z99.2 - Beroende av njurdialys z993 Z99.3 - Beroende av rullstol z998 Z99.8 - Beroende av annan specificerad utrustning och andra specificerade hjälpmedel z999 Z99.9 - Beroende av icke specificerade maskinella och andra hjälpmedel female1.txt patient has been admitted to the hospital for having infection on the recently operated right leg. w0609 w0609 w0609 w0609 w0609 w0609
In Section
Seekers of Perl Wisdom
|
|