bwgoudey has asked for the wisdom of the Perl Monks concerning the following question:
Outputmy $old_text = new MUCParser; $old_text->parse("old_file.html"); print "before\n" print $old_text->num_of_tags()."\n"; my $new_text = new MUCParser; $new_text->parse("new_file.html"); print "after\n"; print $old_text->num_of_tags()."\n"; print $new_text->num_of_tags()."\n";
Its like they are writing to the same space in memory but I am not sure why this would happen. Any ideas?before 602 after 397 397
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Parsers overwriting each other
by Corion (Patriarch) on Jul 21, 2007 at 08:28 UTC | |
by bwgoudey (Sexton) on Jul 21, 2007 at 16:00 UTC |