![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
problem with regex to extract netstat infoby Anonymous Monk |
on Jun 08, 2002 at 04:27 UTC ( [id://172741]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: Hi, I am trying to fix a little utility i created to diaply the `netstat -an` info and maybe play with that info by i don't know, getting a hostname. The script works fine but it's not working as i expected. Heres the code:
All i need to do is clean it up and get rid of the spaces. Heres a sample netstat line from the script: Local: 0.0.0.0:7 - External: 0.0.0.0:0 LISTENING - And heres one from the netstat command TCP 0.0.0.0:81 *:* LISTENING Any pointers and that kinda stuff would be great. Cheers Elfyn McBratney Edit kudra, 2002-06-08 Changed title
Back to
Seekers of Perl Wisdom
|
|