You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ja...@apache.org on 2001/09/10 03:16:10 UTC

cvs commit: xml-xerces/perl/samples SAXCount.pl

jasons      01/09/09 18:16:10

  Modified:    perl/samples SAXCount.pl
  Log:
  	* samples/SAXCount.pl (Repository):
  	added end_tag()
  	pulling arguments off perl stack reduced memory usage
  
  Revision  Changes    Path
  1.5       +5 -2      xml-xerces/perl/samples/SAXCount.pl
  
  Index: SAXCount.pl
  ===================================================================
  RCS file: /home/cvs/xml-xerces/perl/samples/SAXCount.pl,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SAXCount.pl	2001/07/09 23:13:35	1.4
  +++ SAXCount.pl	2001/09/10 01:16:10	1.5
  @@ -84,7 +84,7 @@
   
   EOU
   
  -my $VERSION = q[$Id: SAXCount.pl,v 1.4 2001/07/09 23:13:35 jasons Exp $ ];
  +my $VERSION = q[$Id: SAXCount.pl,v 1.5 2001/09/10 01:16:10 jasons Exp $ ];
   my %OPTIONS;
   my $rc = GetOptions(\%OPTIONS,
   		    'v=s',
  @@ -127,9 +127,12 @@
   @ISA = qw(XML::Xerces::PerlDocumentHandler);
   
   sub start_element {
  -  my $self = shift;
  +  my ($self,$name,$attrs) = @_;
     $self->{elements}++;
     $self->{attrs} = 0;
  +}
  +sub end_element {
  +  my ($self,$name) = @_;
   }
   sub characters {
     my ($self,$str,$len) = @_;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org