Oops.. I forgot to put the two files used.

Customer.txt

200207:ABC
200905:DEF
200403:GHI
200010:JKL


20100310.bill

200207 200207 SWITCH FastEthernet1_0_1 OUT 01-Feb-2010_02:00 01-Mar-2010_02:00 428.706 129.641
200207 200207 SWITCH FastEthernet1_0_1 IN 01-Feb-2010_02:00 01-Mar-2010_02:00 168.476 50.947
200207 200207 SWITCH FastEthernet1_0_2 OUT 01-Feb-2010_02:00 01-Mar-2010_02:00 65.223 19.723
200207 200207 SWITCH FastEthernet1_0_2 IN 01-Feb-2010_02:00 01-Mar-2010_02:00 37.958 11.478
200905 200905 SWITCH FastEthernet1_0_4 OUT 01-Feb-2010_02:00 01-Mar-2010_02:00 3.193 0.965
200905 200905 SWITCH FastEthernet1_0_4 IN 01-Feb-2010_02:00 01-Mar-2010_02:00 41.499 12.549
200403 200403 SWITCH FastEthernet1_0_5 OUT 01-Feb-2010_02:00 01-Mar-2010_02:00 1.396 0.422
200403 200403 SWITCH FastEthernet1_0_5 IN 01-Feb-2010_02:00 01-Mar-2010_02:00 38.862 11.752
200010 200010 SWITCH FastEthernet1_0_6 OUT 01-Feb-2010_02:00 01-Mar-2010_02:00 3.386 1.024
200010 200010 SWITCH FastEthernet1_0_6 IN 01-Feb-2010_02:00 01-Mar-2010_02:00 4.489 1.358


In reply to Re: Calculate the Sum of each customer data by roborat
in thread Calculate the Sum of each customer data by roborat

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!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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, details, 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, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            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.