in reply to Re^2: Insert Element Into Array
in thread Insert Element Into Array

But you are re-initializing @L1 (You use my @L1) inside the "for $line" loop.

So, anything you add at the beginning will be obliterated by the re-initialization.

Please re-think your logic, and reconsider my suggestion to print the titles first, before entering the loop.

It matters little that the "print" output is redirected to a CSV file.

             I hope life isn't a big joke, because I don't get it.
                   -SNL