Help for this page

Select Code to Download


  1. or download this
    use strict;
    use XML::Simple qw(XMLin);
    ...
    foreach my $author (@{$data->{AuthorList}{Author}}) {
        print "$author->{ForeName} $author->{LastName}\n";
    }
    
  2. or download this
    use strict;
    use XML::Rules;
    ...
    foreach my $author (@{$data->{Authors}}) {
        print "$author->{ForeName} $author->{LastName}\n";
    }