in reply to how to print word next to pattern match??
I understand that you want a word after the patten match in a line, for this why do not you read this first
Grouping things and hierarchical matchingMoreover you said you want a word read about word boundary that will help you.
All is well. I learn by answering your questions...
In Section
Seekers of Perl Wisdom