in reply to Should string inequality operators return the point the of divergance?
I doubt perl will be changed to support such behaviour, since it is very rarely required and the information can quite easily be found by other means.
Here's one way to do it:
($s1 ^ $s2) =~ /[^\0]/ and return $-[0];
Hugo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Should string inequality operators return the point the of divergance?
by Corion (Patriarch) on Oct 15, 2004 at 12:58 UTC |