Hi.
I'm new to perl so please excuse my newbie-ness :)
Is there a way to print just a word contained in a text file by using a search filter instead of printing the entire string even if the word is not an exact match? I have a text file that contains some server names with the fqdn and some with the short names that are contained in a string.
example:
<Answer type="string">ServerName.FD.net.org</Answer>
The following code finds the string and prints it but I would like to just print the ServerName: