in reply to different return type for split
$str = "this is a string"; print scalar split(/\s/,$str); [download]