in reply to lcfirst and ucfirst not working

What do you expect the code to print? You never assign anything to $little, so the last line prints an empty line. Just as I expected.