XML vs Perl-Datenstruktur

 [Vorheriges Kapitel]  [Vorherige Seite]  [Inhaltsverzeichnis]  [Nächste Seite]  [Nächstes Kapitel]

doolin$ cat mybooks.xml
<books>
  <book title="Learning Perl" isbn="0-596-00132-0">
    <author>Randal L. Schwartz</author>
  </book>
  <book title="Programming Perl" isbn="0-59600-027-8">
    <author>Larry Wall</author>
    <author>Tom Christiansen</author>
    <author>Jon Orwant</author>
  </book>
</books>
doolin$
{
   'book' => {
      '0-596-00132-0' => {
         'title' => 'Learning Perl',
         'isbn' => '0-596-00132-0',
         'author' => [ 'Randal L. Schwartz' ]
      },
      '0-59600-027-8' => {
         'title' => 'Programming Perl',
         'isbn' => '0-59600-027-8',
         'author' => [
            'Larry Wall',
            'Tom Christiansen',
            'Jon Orwant'
         ]
      }
   }
}

 [Vorheriges Kapitel]  [Vorherige Seite]  [Inhaltsverzeichnis]  [Nächste Seite]  [Nächstes Kapitel]
Copyright © 1996 - 2003 Andreas Borchert, in HTML konvertiert am 01.10.2003