"be consistent" | |
PerlMonks |
Re^3: XPath with node names and attributes...by thunders (Priest) |
on Oct 20, 2009 at 17:04 UTC ( [id://802267]=note: print w/replies, xml ) | Need Help?? |
Didn't have a chance to test your example, but I think this is the problem:
Perl thinks you want to insert the contents of an array called @attr1 into the string because you used double quotes. Since there is no such array your $rule_source ends up with just "head/node1". Either escape the '@' or use a single quoted string as in the examples below:
In Section
Seekers of Perl Wisdom
|
|