command (the last line executed in the script). Slurping the data and looping for the file output is actually very fast (given that it may not be the
) considering the numbers of records I am looking at. And yes, you are correct in that MySQL has many ways of completing this task however it is not nearly as fast as perl.