in reply to different return type for split

sorry the first snippet should be
$str = "this is a string"; print split(/\s/,$str);
i'd mistakenly put the $ sign before the split function