in reply to Re^3: Check if string A and B are made up of same chars
in thread Check if string A and B are made up of same chars

> And aren't you neglecting the length in your example?

Nope, different length will fail. (See also second test)

But yes, I was only concentrating on the essential part, his "specs" are indeed a bit fuzzy.

Anyway, there's no point in optimizing for speed if the problem-space is under-defined

Cheers Rolf
(addicted to the Perl Programming Language :)
see Wikisyntax for the Monastery

  • Comment on Re^4: Check if string A and B are made up of same chars