in reply to different return type for split

Use scalar, like this:

$str = "this is a string"; print scalar split(/\s/,$str);