$data = "Hello There";
How do I count the number of spaces in the string $data?
I know this is an easy question and I was reading through the posts that had questions similar to this, but I couldn't comprehend. Thanks.
"Pin me. Perl me."
Regards,
Chris