This code I have written but even Good not contains all capital words like GOOD the output of my code is All word is capital which is wrong.
Can any one help me to solve this problem.
[CODE=PERL]my $element = "Good";
if ($element =~ /[A-Z]/g)
{
print "All word is capital";
}
else
{
print "Not all word capital"
}[/CODE]
Can any one help me to solve this problem.
[CODE=PERL]my $element = "Good";
if ($element =~ /[A-Z]/g)
{
print "All word is capital";
}
else
{
print "Not all word capital"
}[/CODE]
Comment