Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
Thank you. That was helpful.
This is requirement.
1. I have data in DB
ex: of data in DB.
Student|Subject|Marks aaa|eur|100 aaa|usd|90 aaa|eur|101 aaa|usd|80 aaa|eur|90 --------- bbb|usd|80 bbb|usd|100
.......
So Mapping goes like below:
aaa->eur->100 aaa->eur->101 aaa->eur->90 aaa->usd->90 aaa->usd->80

Output will be : 1.If level=2
aaa,eur,sum(100,101,90) aaa,usd,sum(90,80)
so on..

2.If level is 3, we have more detailed level
aaa,eur,100,sum(gg) aaa,eur,100,sum(hh) aaa,eur,101,sum(gf) aaa,eur,101,sum(s) aaa,eur,90,sum(dd) aaa,eur,90,sum(sf) aaa,usd,90,sum(eq)
...
Here its the users choice if u want to print at 2 level or 3 level or more..
If level is 4 then we go into detailed level.

Hope this requirement helps
I want to dynamically store the values in arrays and iterate through these arrays and get this values.

In reply to Re^4: How to create loop in perl dynamically by adithi
in thread How to create loop in perl dynamically by adithi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others studying the Monastery: (7)
    As of 2014-12-29 12:49 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      Is guessing a good strategy for surviving in the IT business?





      Results (187 votes), past polls