Hi guys , that's not really difficuly I guess but I'm just trying to get the hang of the Perl expressions.Thanks for any reply in advance.Here the question :
Why the output is "TRUE" from this code below since each letter on the right ( [col] ) must match exactly 4 times...?Since there is only "c" and one "l" in the [cool].
if ("cool" =~ m/[col]{4}/
{ print ("True") ; }
Why the output is "TRUE" from this code below since each letter on the right ( [col] ) must match exactly 4 times...?Since there is only "c" and one "l" in the [cool].
if ("cool" =~ m/[col]{4}/
{ print ("True") ; }