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;
In reply to Re: How do i split the output of ps -aef
by arturo
in thread How do i split the output of ps -aef
by Anthanos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |