digital_storm
06-23-2005, 03:42 AM
Hello
I want to minimize connections to a specifik application so I use a command that shows all available paramteres and store that value in a paramter called $status
Now I want to control if some values exist in my $status doing:
$dothis #defined and is what I'm searching for
if ($status=~ m/$dothis(.*)\n/) {
@response=split(":",$status);
$setw=@response[1];
} else {
$setw="Ingen inmatning gjord";
}
The information is stored on the format
aaaaaaaaaaaa : b
cccccccccccc : d
so I want to control each row and if the value exists I will get current row and use split(":",$currentrow) to get my value. But when I'm using the syntax above webbserver freezes like itsgoing in a non stoping loop.
What am I doing wrong?
Thanks!
/D_S
I want to minimize connections to a specifik application so I use a command that shows all available paramteres and store that value in a paramter called $status
Now I want to control if some values exist in my $status doing:
$dothis #defined and is what I'm searching for
if ($status=~ m/$dothis(.*)\n/) {
@response=split(":",$status);
$setw=@response[1];
} else {
$setw="Ingen inmatning gjord";
}
The information is stored on the format
aaaaaaaaaaaa : b
cccccccccccc : d
so I want to control each row and if the value exists I will get current row and use split(":",$currentrow) to get my value. But when I'm using the syntax above webbserver freezes like itsgoing in a non stoping loop.
What am I doing wrong?
Thanks!
/D_S