Hi, I don't need XML::Writer, I corrected the spelling of Writer.
Yes, I can produce an XML file. <xhtml xmlns="..."> tags are always found. </xhtml> tags are found for every </...>, so for all closing tags. I thought that this erronous maching is the result of an uninitialized value of $j or $j2. As I can print $j2, I see that in the pattern matching of </xhtml> $j2 goes only to 2. So it recognizes only the "</" part and that is all. What can the problem be? Tamas -----Ursprüngliche Nachricht----- Von: Kent Fredric [mailto:kentfred...@gmail.com] Gesendet: Montag, 6. Juli 2015 09:35 An: Nagy Tamas (TVI-GmbH) Cc: beginners@perl.org Betreff: Re: Use of uninitialized value $j in numeric eq (==) at myfile line 125 On 6 July 2015 at 19:15, Nagy Tamas (TVI-GmbH) <tamas.n...@tvi-gmbh.de> wrote: > use XML::writer; Is that supposed to be XML::Writer , or is it really XML::writer? Either way, its irrelevant because its not used anywhere. Can you produce an XML file that will repeat the problem, the attached script I can't trigger a failure in. -- Kent KENTNL - https://metacpan.org/author/KENTNL