Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems calling the XML::Parser a second time

Status
Not open for further replies.

peterneve

Programmer
Jan 24, 2002
50
GB
I am using the XML::parser to parse through a file, which works fine. However the second time (within the same script) that the subroutine containing the XML::parser is called, it always returns the same as the first query. All the varaibles are reset except the parser. The subroutine for parsing the xml code contains this:

Code:
use XML::Parser;
my $parser = new XML::Parser ();

Is there any way to kill the $parser variable off to allow it to be created again for a clean run?

Thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top