in reply to Basic Perl Regular Expressions

Being magical, split " ", $string; is better yet. It trims leading and trailing space without leaving an empty slot in the array, as well as eating multiple spaces.

After Compline,
Zaxo