Still untested:

* A. Pagaltzis <[EMAIL PROTECTED]> [2003-02-23 17:50]:
> @found3 = map pop @{$hash{$_}}, amatch('3456', @info);

That should rather read

@found3 = map shift @{$hash{$_}}, amatch('3456', @info);

The point is that the order of identical items in the
initial list is preserved in the arrays under the hash key
they get stored in. If you pull them out FIFO-fashion as you
go through the list of elements returned by amatch(), you
should get exactly what you want, in the exact same order as
if amatch() had returned the entire items.

-- 
Regards,
Aristotle

Reply via email to