Category "perl"

Removing leading, trailing and multiple spaces within a string

I would like to remove all leading and trailing spaces. As well as replace multiple spaces with a single space within a string, so that all words in a string ar

What type is STDOUT, and how do I optionally write to it?

Does STDOUT have a "type"? printf STDERR ("STDOUT = %s\n", STDOUT); printf STDERR ("\*STDOUT = %s\n", *STDOUT); printf STDERR ("\\\*STDOUT = %s\n", \*STDOUT);