the problem is that it prints only the last line in my db. It multiplies -forearch record in the db- the last record found .... Resulting that $_->[0] produces
$_ is a array ref, you should de-ref it. like what Paul say, @$_; you probably want to match one by one in the array. then you can do like @$_[indexnumber] =~ /keyword/