This command
echo "hello world" | awk '{split($0, array, " ")} END{print length(array) }'
does not work for me and gives this error message
awk: line 1: illegal reference to array array
Why?