... which is what both use strict; and use warnings; would have told you, if you had used them.
In reply to Re^4: XPath query issue... by Corion in thread XPath query issue... by spstansbury