Wonder what that does with unicode text??

Richard Z. Ward wrote:
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, August 05, 2004 2:11 PM
To: [EMAIL PROTECTED]
Subject: 'eq' operator case insensitive?


Is there a way to change the behavior of the 'eq' operator? I want it to perform case insensitive comparisons.


I don't know if you can change the behavior of eq (or ne) but this is what I
do:

(uc $v1) eq (uc $v2)

I uppercase $v1 and $v2 before using eq. I don't know if the parentheses are
necessary or in fact cause extra work for Perl.

Richard


Kurt

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs




--

SKYKING, SKYKING, DO NOT ANSWER.

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to