Help for this page

Select Code to Download


  1. or download this
    <shelf>
        <product>
    ...
            <color>orange</color>
        </product>
    </shelf>
    
  2. or download this
    use XML::Simple;
    $file = XMLin('./prod.xml');
    ...
        print "  Cost: " . $products->{cost} . "\n";
        print "Colors: " . $products->{color} . "\n\n";
    }
    
  3. or download this
    Widget: widget1
    Rating: B
      Cost: 0.10
    ...
    Rating: S
      Cost: 0.25
    Colors: ARRAY(0x19c55f0)