in reply to CSV file to C file conversion using perl

This is not a code writing service. While we will try to help you with the code you have already written and with the problems you encounter with it, we won't do your work for you.

Please show what code you have already written and where you encounter problems with it. Show us what output you expect, and what output you get instead.

I recommend looking at Text::CSV_XS for reading the CSV file, and at the sprintf function for creating the macro line.

If the C code is to be more complex, have a look at Template or HTML::Template for creating more complex output.

  • Comment on Re: CSV file to C file conversion using perl