Perl newbie here. Can someone please help me with this? I want to write a perl script to count the number of digits, characters, whitespace characters and
words in a string. I feel lost. I've tried writing a while loop to do this, but I end up with an infinite loop.