Re: perl grep help

2006-08-14 Thread Chris Wagner
No need to crosspost. Don't post HTML. At 05:19 PM 8/14/2006 -0400, Mark Funk wrote: >I have a list that I need to parse through and perform a ping against. >@PINGONLY = >172.22.159.100 >172.23.55.18 >172.16.*.100 >208.171.58.* >Code example... > if (grep(/^$priv_ip/, @PINGONLY)) { >If 172.16.22

perl grep help

2006-08-14 Thread Mark Funk
I have a list of IP addresses that I am getting status for.  Where possible I will use a socket connection.   However, some of the IP addresses I need to ping. I have a list that I need to parse through and perform a ping against.   The list can look like this:   @PINGONLY =   172.