Thank You
Thank You 
Thank You

I LOVE THIS MAILING LIST!!!!!!!!!!!


Ernest P. Tucker II
 Network Technician



"The organization that can't communicate can't change, and the corporation
that can't change is dead."  
--Nido Qubein 


-----Original Message-----
From: Bob Showalter [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 12:13 PM
To: 'Tucker, Ernie'; [EMAIL PROTECTED]
Subject: RE: parsing a variable


> -----Original Message-----
> From: Tucker, Ernie [mailto:[EMAIL PROTECTED]]
> Sent: Friday, June 14, 2002 10:39 AM
> To: [EMAIL PROTECTED]
> Subject: parsing a variable
> 
> 
> I have a global variable name @offline. It has the following 
> information
> stored in the variable. What I need to do is parse or split 
> the variable and
> store the mac id in a variable . What is the proper way to do this?
> 
> 
> Cable3/0/U0 0020.4098.43fc 944  online    Jun 13 14:09:56   
> 0.00  32.56 5
> 
> Cable3/0/U0 0020.4095.2078 1104 online    Jun 14 05:21:28   
> 0.25  34.23 79
> 
> Cable3/0/U0 0020.409a.e2c0 1111 init(r2)  Jun 9  22:06:21 
> !-10.00 33.64 60
> 
> Cable3/0/U0 0020.402d.4e5c 2902 online    Jun 13 20:10:26  
> -0.25  34.18 26
> 
> Cable3/0/U0 0020.40a3.92fc 3017 online    Jun 13 22:23:55  
> -0.50  33.95 12
> 
> Cable3/0/U0 0020.404d.1e60 3058 online    Jun 13 14:56:26  
> -0.75  33.40 3
> 
> Cable3/0/U0 0004.bd01.0120 3077 online    Jun 13 19:36:15  
> -0.25  33.94 2
> 
> Cable3/0/U0 0020.404d.255e 3081 online    Jun 13 17:08:14  
> -0.25  32.96 1  

I don't know why you're getting all the elaborate regex solutions.
Seems like a simple split would to the trick:

   @mac = map { (split)[1] } @offline;


 "The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from all
computers." 


Reply via email to