View Full Version : making an export CSV button with perl-cgi

06-18-2009, 08:43 PM

I currently have an HTML table with data in it. I am new to Perl and I want to take my HTML table and allow users to hit an "Export to CSV" button which will allow them to download the data in the table to a file. There is also going to be checkboxes so that the user can specify which columns from the table they want in the file. I am unfamiliar with this, and haven't done much file writing/reading stuff in Perl. I've searched the web and have been unable to find a good solution/example for this problem. Help is appreciated!


06-19-2009, 06:38 AM
If you have not done any CGI programming with perl before I suggest you start learning how to get the form data imported into your script first. Perl comes with the CGI module for the purpose of (well for the pupose of many things actually) doing just that. If you try and tackle this project as a whole you're going to get frustrated as this is not an easy task. Not super hard but definetly not easy either. Also, I really doubt you will find specific help with this type of project or any canned scripts.