Help for this page

Select Code to Download


  1. or download this
        <?xml version="1.0" encoding="UTF-8" ?> 
        <GeocodeResponse>
            <status>OK</status> 
    ...
                </geometry>
            </result>
        </GeocodeResponse>
    
  2. or download this
        print "<br>Content-type: text/html \n\n";
        my @lines = split /\n/, $content; #--content = above XML data
        my $depth=0; my @myarray; my $currVar; #--Declare/Set
    ...
            }    
        }
        print "<br>STATUS = ".$myarray[GeocodeResponse][status]." <---THIS
    + should say OK";
    
  3. or download this
        $myarray=[GeocodeResponse]=[
            status="OK",
    ...
                ],
            ],
        ]
    
  4. or download this
    # creates a single array, not an array of arrays
    my @array_of_arrays = ( 1 .. 10, ( 11 .. 20, ( 21 .. 30 ) ) );
    
  5. or download this
    @array_of_arrays = (
        status="OK",
    ...
            )
        )
    )