in reply to Re^2: How to remove elements with XML::LibXML
in thread How to remove elements with XML::LibXML

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.

Replies are listed 'Best First'.
Re^4: How to remove elements with XML::LibXML
by Maxim (Sexton) on Oct 10, 2004 at 19:44 UTC
    Thanks for your advice corion but somtime I found the documention not enought clear and even the book. They are not enought straight forward even on of my tutor, he complain there is not enough example to tell you what the code means or what the code do.
    I have read a book of Perl "Perl and CGI for the World Wide Web" and it is quite straight forward what you need to do. What this book says, it is better to give example to the novice instead to a long documentation to read. I don't blame you "corion" because you are right and I respect all the people from this useful forum. For me, it is a great forum to have discussion and to have help from wise people.

    Maxim