in reply to Re^2: sth fetch only grabbing back first result
in thread sth fetch only grabbing back first result

Maybe, this happens because NOW() and CURDATE() return date in different formats?

Try

my $data = qq(SELECT search, engine, time FROM searches WHERE DATE_SUB +(NOW(),INTERVAL 7 DAY) <= time);
I cannot test it now, but i think that it will produce the wanted output too.

     s;;Just-me-not-h-Ni-m-P-Ni-lm-I-ar-O-Ni;;tr?IerONim-?HAcker ?d;print