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
In reply to Re: Basic Perl Regular Expressions
by Zaxo
in thread Basic Perl Regular Expressions
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |