in reply to Save results into one big XML file help!

the structure saved is complicated to use, it saves the file in 15 chunks of data like: ...

You presumably used print Dumper( @array ) which resulted in the 15 chunks.

Had you done print Dumper( \@array ); you'd find the results much easier to work with.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

The start of some sanity?

Replies are listed 'Best First'.
Re^2: Save results into one big XML file help!
by Anonymous Monk on Aug 16, 2012 at 03:28 UTC
    How could I use that there, I have the variable $tree to use not @tree, right?

      my @data; foreach my $zip(@zipcode) { ... $tree = $tpp->parsehttp( GET => $url ); push @data, $tree; } print FILE Dumper \@data;

      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      The start of some sanity?

        OK that's good, but how can you get the values from this big file once it gets created?