XML, the Perl Way

Processing XML with Perl Michel Rodriguez

Perl Idioms

Modules

Object-Oriented Perl

Creating an object

  my $obj= Class->new( @args);
  my $obj= new Class( @args);
  my $dom= new XML::DOM::Parser;
  my $elt= new XML::Twig::Elt( "p", "text of para $para_nb");

Using an object

  $obj->method( @args);
  my $doc = $dom->parsefile ("REC-xml-19980210.xml");
  $elt->print( \*FILE);



Perl Idioms

Modules