$ perl -e 'warn 0+(($x, $y) = split " ", "foo bar\n");' 3 at -e line 1. $ perl -e 'warn 0+(($x, $y) = split " ", "foo bar");' 2 at -e line 1.