Help for this page

Select Code to Download


  1. or download this
    use warnings;
    use strict;
    ...
                                                                          
    +          
    {
    
  2. or download this
    # REIMPLEMENTING THE WHEEL STARTS HERE
    
    ...
            $handler{"Char"} = sub { $string .= $_[1]; };
                                                                          
    +          
    # REIMPLEMENTING THE WHEEL ENDS HERE (more or less)
    
  3. or download this
            my($child, $member, $goodness, $id);
            $starthandler{"cluster"} = sub {
    ...
                    sub { push @$member, $string; };
            };
    
  4. or download this
            XML::Parser->new("Handlers", \%handler)->parsefile($ARGV[0]);
    
  5. or download this
            warn "done parsing xml";
                                                                          
    +          
    ...
                                                                          
    +          
    # ... and here we actually do something with what we'we read, but I wo
    +n't show that ...
    
  6. or download this
    use warnings;
    use strict;
    ...
                                                                          
    +          
    # ... and I omit the rest of the code again ...