<simon(_dot_)p(_dot_)cozens(_at_)jp(_dot_)pwcglobal(_dot_)com> writes:
There might be a bug here, but I think it's a matter of philosophy.
Could I have people's intuitive reactions, please:
Given
$a = v196.172.200
which is a non-UTF8 string,
and
$b = v300
which is a UTF8 string which just so happens to look like v196.172
in a byte representation, should
$a =~ /^$b/
? Should it require "use bytes" to match? Or "use utf8"?
Personally, I don't think it should match at all - but it currently
does.
It should not match at all.
I guess some might argue that it should be allowed to match under 'use
bytes'. I don't like that.
Regards,
Gisle