http://www.perlmonks.org?node_id=919441


in reply to Re: Difference between two arrays - is there a better way?
in thread Difference between two arrays - is there a better way?

Thanks.

Both dependencies will always be met in this particular case - as I mentioned, this was not a general problem.

Still, I also prefer the second solution - it's not only more general than mine, but looks better, and seems more simple/elegant (although the aesthetic argument may not be as valid as the one you mentioned - that it is more general).

I was simply wondering about other ways, in the spirit of TMTOWTDI. Thank you, and thanks to BrowserUk for both other solutions.

  • Comment on Re^2: Difference between two arrays - is there a better way?