in reply to Re^2: Adding row in a hash Help!!
in thread Adding row in a hash Help!!
And what does, "does not work" mean this time?
I got a pretty clear error message when running your script:
Global symbol "$data" requires explicit package name ...
Which led me to this line:
push @data, $data->[0]{'xml_api_reply'}{'weather'}{'report_date'} = {' +-data' => $today };
Which I changed to this:
push @data, $weather_data->[0]{'xml_api_reply'}{'weather'}{'report_dat +e'} = {'-data' => $today };
Now it runs without errors.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Adding row in a hash Help!!
by Anonymous Monk on Aug 20, 2012 at 02:53 UTC | |
by hbm (Hermit) on Aug 20, 2012 at 03:52 UTC | |
|
Re^4: Adding row in a hash Help!!
by Anonymous Monk on Aug 20, 2012 at 04:03 UTC |