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.

cgi-perl: embedding javascript in perl (mistake in first mail)

2006-08-14 Thread Dhivya Arasappan/O/VCU
I'm sorry. I was trying to simplify the code to mail to the mailing list and made a silly mistake in the argument names. This is not the problem in the actual code. So,the problematic code actually looks more like:   $testvar = 'www.google.com'; print(">");   function popwindow(url){    

Fw: cgi-perl: embedding javascript in cgi-perl

2006-08-14 Thread Dhivya Arasappan/O/VCU
Hi everyone,   I've been trying to put a button in my perl-cgi program which when clicked calls a _javascript_ function.   I need to send a previously initialized perl variable to the _javascript_ function as an argument. But, when I try to pass the parameter to the jsp function, the function is no