in reply to Re^2: find min, max and average
in thread find min, max and average

The issue that i need to get fixed with is that there will be five lines of tags(httpSample tags) then a empty line then another five lines of tag(httpSample tags) then an empty line and so on it goes in this format. Now i need to calculate the minimum and maximum of these each set of five lines(lt value of httpSample tags) seperately and display it.( for the same code listed above, in this thread). Since there is an empty line in between each set of five tags i couldnt figure out how to retrieve each set of five tags into an array and display the same.

Replies are listed 'Best First'.
Re^4: find min, max and average
by bart (Canon) on May 25, 2011 at 07:28 UTC
    Check the output of XML::Simple (dump it with Data::Dumper), and see if there's a way to distinguish between the groups. If not, you'll have to upgrade from XML::Simple to a more complicated XML module.

    (Did you really say "an empty line"? Empty lines are meaningless in XML. You should nest the related tags in a grouping tag.)

      bart i already checked using Data dumper. Further, its not like an empty line. check this URL, http://www.perlmonks.org/?node_id=906467 you will know better by what i say as empty line. In the above URL i've mentioned the code i used too. The point is the XML file i have listed in that link, i need to display it in two arrays. one array with all values before the empty new line and other array with all values below the empty new line. that is it. Thank you for yours reply.