Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: perl regex with '\s+'

by Zaxo (Archbishop)
on Jun 08, 2002 at 11:38 UTC ( [id://172766]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($prot,$recv_q,$send_q,$laddr,$lport,$eaddr,$eport,$status,$syn) =
        map {split ':'} split " ";
    
  2. or download this
    open NETSTAT, '-|', '/bin/netstat', '-na' or die $!;
    while (<NETSTAT>) {
    ...
            if $sockdata[7] =~ /syn/i;
        printf "Local: %s:%s - External: %s:%s - %s$/", @sockdata[3..7];
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://172766]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-26 06:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found