P is for Practical | |
PerlMonks |
Re: How do i split the output of ps -aefby arturo (Vicar) |
on Jan 25, 2001 at 03:26 UTC ( [id://54153]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|