http://www.perlmonks.org?node_id=54153


in reply to How do i split the output of ps -aef

I take it you mean the output of that command produces fields separated by a variable amount of whitespace. The solution is to split on one-or-more whitespace characters, just do @bits = split /\s+/, $string;