in reply to Re: Get All Duplicated Elements in an Array (Once, without shifting)
in thread Get All Duplicated Elements in an Array (Once, without shifting)

That is, of course, print if $keycount{$_} > 1;

Makeshifts last the longest.


Comment on Re^2: Get All Duplicated Elements in an Array (Once, without shifting)
Download Code
Re^3: Get All Duplicated Elements in an Array (Once, without shifting)
by Flexx (Pilgrim) on Oct 15, 2002 at 17:16 UTC

    Yikes!!! Caught me with my pants way down... (you caught me back, I guess ;)

    But, it works if there are no duplicates! Umm... 8)

    Cheers,
    Flexx

    Update: struck a potentially offensive joke, that wasn't meant to be such.