$x = 'Andrew';print 'match' if $x =~ /rew/;matchprint 'match' if $x =~ /And/;match# no match as and doesn't match Andprint 'false' if $x =~ /and/;print 'true' if $x =~ /and/i; # the 'i' is ignore casematch
No comments:
Post a Comment