penny1 has asked for the wisdom of the Perl Monks concerning the following question:
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 .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Print Match name for certain rows
by tangent (Parson) on Jan 07, 2014 at 15:50 UTC | |
|
Re: Print Match name for certain rows
by littlemonk (Sexton) on Jan 07, 2014 at 12:06 UTC | |
by littlemonk (Sexton) on Jan 07, 2014 at 12:29 UTC | |
|
Re: Print Match name for certain rows
by NetWallah (Canon) on Jan 07, 2014 at 15:12 UTC | |
|
Re: Print Match name for certain rows
by kcott (Archbishop) on Jan 08, 2014 at 09:59 UTC |