in reply to array problem - splitting array

When splitting on space you can use :

split " ", $sent
The " " expression does some extra magic which is usualy what you want :)