I have no clue how to do it.....
Break it up into pieces, write down steps, convert that into code | [reply] |
halligalli:
If you use DBI, then you can get the names and data types of the columns of a result set, and write the appropriate code to manipulate the data. For example, if you're writing a spreadsheet, you can find out if a column is varchar, float, date, or whatever, and use the correct Spreadsheet::WriteExcel write function to ensure that the data looks like you want it to.
Since your question lacks so many specifics, it's hard for me to give a better answer than that. Read the DBI docs, and give it a try. If you have any further questions after that, let us know...
...roboticus
| [reply] |
thanks for the answers. I will work on it and specify my questions.....
| [reply] |
May be you have headers in the first line than you can use this info to find which type of data each column have.
| [reply] |
split() the first element (not line) into an array, build a hash using the elements of the array as keys and their positions as values and then split() the following elements and access the values you are interested in using the index you obtain by using the hash you built from the first element.
Jenda
Enoch was right!
Enjoy the last years of Rome.
| [reply] |