http://qs1969.pair.com?node_id=606522


in reply to Re: Help in manipulating values from two arrays
in thread Help in manipulating values from two arrays

hi

Thank you very much!! Your code is amazing. I just need one further help. I have the contents <act>key</act>... on a separate xml file. I am not able to succeed if I use open or if I store the file to a variable and call the variable from the place where you have placed the content. Can you please tell me how I can call a external file here?

Thanks, for all your help in this

Replies are listed 'Best First'.
Re^3: Help in manipulating values from two arrays
by GrandFather (Saint) on Mar 26, 2007 at 10:33 UTC

    It's not clear to me what you are trying to achieve with the separate file. Perhaps you could sketch in code what you are trying to do? Not a fully worked attempt to provide a solution to the problem, but an outline of the steps you think are required.


    DWIM is Perl's answer to Gödel

      Hi

      From the lines of text I mentioned previously, (if the content of <prod> is not "non billable" or "insufficient information") the output should display the average of the <prod>. To be more specific, if there are 4 lines which has <emp>3984</emp>, I need to display the average of all the <prod>. Thanks for all your efforts.