Hi all, I'm extremely new in perl and currently having some problems on extracting the match names within ONLY certain rows in a text file.
For example of my text file :
partnm_1
prlot
prwafer
prbin
sspec
fab
partnm_2
sspec
fab
partnm_3
....
....
My intention is to print out prlot prwafer prbin in an .csv file in a column row by row according to the part number (partnm). For partnm_2 which has no prlot prwafer prbin, i want it to print "empty" in the column .
Any suggestion that i could match the name within certain lines of words ? I'm able to print the match values in excel file. but can't make it to search within certain rows. Appreciate much for the help .
In reply to Print Match name for certain rows by penny1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |