View Single Post
Old 09-22-2004, 09:58 PM  
archael
Registered User
 
Join Date: Jun 2003
Posts: 51
Little perl problem, help needed

im just trying to erase duplicates entries .. here's what i got:
basically, i search my database for my own stuff first and its put in @gals2. Now im searching @gals2 for the current result ($_) and if its a match, then current result is replaced by $nothing which is $nothing = "";

while(my @gals = $sth->fetchrow) {
if (@gals2 =~ /$_/){
$_ = $nothing;
}

its not displaying any change at all in my results.. it's as if that whole code didn't exist.

Any input will be appreciated,

Jon
archael is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote