Allow it so split on more than one blank with the + quantifier as explained in perldoc perlre:
@sen = split(/ +/, $sent);
Cheers, Sören
In reply to Re: array problem - splitting array
by Happy-the-monk
in thread array problem - splitting array
by perlbeginner10
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |