I am trying to sort uppercase and lowercase strings in perl in alphabetical order. However, for some reason perl first sorts the uppercase strings and then the lowercase strings (see example below).
my @array = ("abc","def","PQR","STW");
@array = sort @array;
print "$_ \n";