Oh Ken, you are the best! Your silence made me look at my code with religious intent...
I figured it out. I CHOMPED out the result from my grep and tada!
I updated the code in case you care to see.
In summation, this script can open up an XML, parse for info, save to variables... then it uses the variables to construct a search string. THEN, it uses that search string to bash grep another XML file in a diff directory with diff format and XPATH parse it at will.
THANKS AGAIN MONKS!
in reply to Re: XML::XPath=HASH(0x10c4e230) is persistent
in thread XML::XPath=HASH(0x10c4e230) is persistent