Re: [Perl-unix-users] perl grep help

2006-08-14 Thread Jimmy Schappet
sub in_array {     $tst_string = shift;     foreach ( @_ ) {     if ($tst_string =~ m/$_/) { return 1;       }     }     return 0;    }       ###     if (in_array($ip_address, @excl

[Perl-unix-users] 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.

[Perl-unix-users] 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){    

Re: [Perl-unix-users] Fw: cgi-perl: embedding javascript in cgi-perl

2006-08-14 Thread Jimmy Schappet
$testvar = 'www.google.com'; print(" onclick='popwindow(“.$testvar.”);'>");     You need to concatenate the variable into the popup function.   --Jimmy   - James Schappet http://www.schappet.com   -Original Message- From: [EMAIL PROT

[Perl-unix-users] 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