Depending on the output, you might have to be more specific as to what to split on. For example, some programs use a tab (chr 9).
 Code:
for each $line in wshpipe('netstat',1)
  for each $item in split($line," ") 
    ? $item
  next
next


Another way to do it would be to use RegEx. Search the board for examples.