I also have another problum with the find...
this code should check to see if $thing2 is null or eq nothing, and if it does print - or +. but its not, its printing..
## and also take out spaces if there are any.
<a href="javascript:" onclick="JavaScript:window.open('
color="#CCCCCC"></font></a>
<a href="javascript:" onclick="JavaScript:window.open('
','profile','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=590,height=425')"><font color="#CCCCCC"> </font></a>
<a href="javascript:" onclick="JavaScript:window.open('
Nate_Bro','profile','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=590,height=425')"><font color="#CCCCCC"> Nate_Bro</font></a>
<a href="javascript:" onclick="JavaScript:window.open('
Crimson Mohawk','profile','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=590,height=425')"><font color="#CCCCCC"> Crimson Mohawk</font></a>
Code:
for ($i = 0; $i <= $#users_online; $i++){
my $thing = "$users_online[$i]";
chomp($thing);
$thing = "$thing'";
my $thing2 = "$users_online[$i]";
chomp($thing2);
$thing2 = "$thing2</font></a>\n";
my $space = " ";
my $no_space = "";
$thing2=~ s/\$space/$no_space/g;
$thing =~ s/\$space/$no_space/g;
my $nuller="null";
if ($thing eq $space){
print "+";
}
else if ($thing eq $no_space){
print "-";
}
else {
if ($thing =~ /$nuller/){
print "";
}
else {
print " <a href=\"javascript:\" onclick=\"JavaScript:window.open('[URL unfurl="true"]http://s101571840.onlinehome.us/mss/cgi-bin/MB/register.cgi?rHy2=pro&name=$thing,'profile','toolbar=0,location=0,status=0,menubar=0,scrollbars=1,resizable=1,width=590,height=425')\"><font[/URL] color=\"#CCCCCC\">$thing2";
}
}
}
thanks again for your time
