in reply to tweaking of perldoc function (sorting/preserving order)

How do you define order for intersection? Take this for instance:

my @a = (1,2,3); my @b = reverse @a;
The intersection will now be all element in @a (or @b), but in which order?

lodin