Re: XML::Twig - Memory usage problem
mirod <[email protected]>
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
Bill Luebkert wrote: > mirod wrote: >> howard chen wrote: >>> @_[0]->purge; >>> }, >>> } >>> ); >>> >>> $t->parsefile( "company.xml" ); >>> $t->purge; >> Is this a direct cut'n paste? >> >> Because it should be $_[0]->purge in the sub, not @_[0]. (always, ALWAYS use >> strict...) > > That'll just get you a warning - shouldn't create any problems though. > I do agree with your () though. You're right. It doesn't give me much confidence in the original code though. -- mirod _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs