in reply to Split not working

You're splitting on spaces but in your --queryformat argument to rpm you're specifying that the INSTALLTIME:date and NAME fields should be seperated by \t (a tab character). Try:
split(/\t/, $data);
--Brian