in reply to Re^2: Regex to extract certain lines only from command output/text file.
in thread Regex to extract certain lines only from command output/text file.
Hi,
In response to: The OP has only one "9 hostname13 Generic", so how did it become two, in the final output.
I added an extra one in the __DATA__ section, for testing purposes. Only one was showing in the output (the last one in __DATA__ , due to an empty line at the end of the same __DATA__ section.
(The fix is also posted in one of the replies)
Thanks.
Arnaud
In Section
Seekers of Perl Wisdom