Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Answer: How do i split the output of ps -aef

( #54153=categorized answer: print w/ replies, xml ) Need Help??

Q&A > regular expressions > How do i split the output of ps -aef contributed by arturo

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;

Comment on Answer: How do i split the output of ps -aef
Download Code
Log In?
Username:
Password:

What's my password?
Create A New User
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (8)
As of 2015-07-05 05:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls