The stupid question is the question not asked | |
PerlMonks |
Re: language selection via libxml (perlquote)by Anonymous Monk |
on Jan 20, 2014 at 09:53 UTC ( [id://1071289]=note: print w/replies, xml ) | Need Help?? |
If you add use diagnostics; it will print a more verbose error message explaining this scenario (there is no variabele @ID which you keyboarded into your string) string quoting/interpolation are explained in perlintro and Strings in Perl: quoted, interpolated and escaped You can simplify your xpaths, like this (untested , may contain typos)
FWIW, traditionally this is done using .po/.mo files, each language gets its own file ... gettext.. and all that ... :)
In Section
Seekers of Perl Wisdom
|
|