Friday, January 18, 2013
string 의 eq 를 case insensitive 하게 하는 방법
uc() 또는 lc() 를 사용한다.
uc 는 to uppercase, lc 는 to lowercase 해주는 함수.
if(uc("PIzzA") eq uc("PizzA")){ print "MATCH\n"; }else{ print "Not match\n"; }
검색어 :
compare, comparison, 비교, 스트링, 문자열, 대소문자
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment