Help for this page

Select Code to Download


  1. or download this
    use Data::Dump::Streamer;
    my $xml = XML::Simple->new();
    my $d = $xml->XMLin("sample.xml",ForceArray => 1, KeepRoot => 1);
    Dump $d;
    
  2. or download this
    $HASH1 = { 
      inbox => [ 
    ...
        } 
      ] 
    };
    
  3. or download this
    my $d = $xml->XMLin("sample.xml");
    
  4. or download this
    $HASH1 = { 
      item => [
    ...
        }
      ] 
    };
    
  5. or download this
    for my $item ( @{ $d->{item} } ) {
      print "$item->{title}\n";          # for example
    }