See split. split takes a regular expression, not a string.
In reply to Re: Does split not work with a pipe? by Corion in thread [SOLVED] Does split not work with a pipe? by jaffinito34