in reply to Re: Unique items in a text file
in thread Unique items in a text file

Hi,
I run the code and it is printing back the total for all the item just like the problem I was having before, but thanks for your effort.
Result prints:
 48

Replies are listed 'Best First'.
Re: Re: Re: Unique items in a text file
by Tomte (Priest) on Apr 20, 2004 at 14:38 UTC

    Dunno, that's what I get:

    DI: 3<br /> Not Found: 1<br /> FA: 2<br /> Login: 4<br /> DX: 1<br />

    regards,
    tomte


    An intellectual is someone whose mind watches itself.
    -- Albert Camus

      How would I do this based on the datgiven?
        I meant DATE
      I got the same here, how would you do if you had to add this numbers up instead of displaying them in order?

        change

        print $_ . ': ' . $erg{$_} . '<br />' . "\n" foreach (keys %erg);
        to
        my $erg = 0; $erg += $erg{$_} foreach (keys %erg); print $erg,"\n";

        regards,
        tomte


        An intellectual is someone whose mind watches itself.
        -- Albert Camus

Re: Re: Re: Unique items in a text file
by Anonymous Monk on Apr 20, 2004 at 14:46 UTC
    I got the same here, how would you do if you had to add this numbers up instead of displaying them in order?