Please, Maxim, read the documentation, and read about Perl syntax. You this syntax error, because you copied stuff out of the documentation without reading it and realizing that the $d, [$value] part is not meant to be copied verbatim. The square brackets around $value are used to describe that it is an optional parameter.
I recommend that you read a book about Perl and also read the documentation for the functions you are using before piecing together a script by copying from the documentation.
In reply to Re^3: How to remove elements with XML::LibXML
by Corion
in thread How to remove elements with XML::LibXML
by Maxim
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |