Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: ARRAY HELP!!!!!
by Fastolfe (Vicar) on Nov 08, 2000 at 21:33 UTC
Re: ARRAY HELP!!!!!
by davorg (Chancellor) on Nov 08, 2000 at 22:18 UTC
      True, Array::Compare's full_compare function will also return differences, but I tend to shy away from this module. It's very inefficient. In most cases, a simple iterate-and-compare loop is faster than its 'compare' function. Its full_compare function is also a lot slower than any of the Perl Cookbook-style "array difference" methods.
Re: ARRAY HELP!!!!!
by mitd (Curate) on Nov 09, 2000 at 12:34 UTC
    Just 'cause I feel nostalgic. Here it is straight from The Pink Camel.
    local(%MARK); grep($MARK{$_}, @ARRAY); @RESULT = grep(!$MARK{$_}, @ARRAY);

    Is it true that before merlyn discovered the Tuxedo he was pretty in pink??

    mitd-Made in the Dark
    'My favourite colour appears to be grey.'

A reply falls below the community's threshold of quality. You may see it by logging in.