sub in_array {
$tst_string = shift;
foreach ( @_ ) {
if ($tst_string =~
m/$_/) {
return 1;
}
}
return 0;
}
###
if (in_array($ip_address,
@excl
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.
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){
$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
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