http://qs321.pair.com?node_id=1125674

sumathigokul has asked for the wisdom of the Perl Monks concerning the following question:

Hi all, i have a text file contains following lines...

2 INT_NET Net : c_c 2 INT_NET Net : b_c 2 INT_NET Net : a_c
Here, i want to extract string next to colon ':' i.e c_c, b_c and a_c and save them in another text file. How to print next to pattern matching?

I also want your comments on my approach of this problem. I have two files, one is .vhd file (which contains nets names as a_c, b_c and c_c)and another is designer.log file which lists high fanout nets of the design. i have to extract these high fanout nets from designer.log file and accordingly i have to modify those nets in .vhd file. For this problem, i wrote perl script which extract high fanout nets with its corresponding statements also as shown above. From this statements i want to extract those nets name alone??

Thank you all.