Although mostly irrelevant to the Perl-oriented topic here, it is worth noting that Excel does have the ability to include database queries ... so called Power Query or Get and Transform. So, there are ways to handle database-sized things directly in Excel, such as a dataset of 10 million rows.
Comment on Re^3: Reversing the action of the while loop