How do you design a simple PERL program?

Davs

New member
I have to design a PERL program for class but my professor isn't very good at explaining things.

the goal of the program: design a character counting program

If the input looks like this: black
the output: 5 black

I've googled this but haven't been able to find a simple explanation. Could someone help?
the output should look like this:
5 abcde
3 klz
 
Back
Top