Dear Monks, I would like to fetch data from a MySQL database. I read perlmonks tutorials and other sources but still I have some problems.
I have the following table structure holding words of a splitted text file:
|id |line_n |word |word_position
--------------------------------------------
|1 |1 |Lorem | 1
|2 |1 |ipsum | 2
|3 |1 |dolor | 3
|4 |1 |sit | 4
|5 |1 |amet, | 5
|6 |2 |consectetuer | 1
|7 |2 |adipiscing | 2
|8 |2 |elit. | 3
|9 |3 |Phasellus | 1
|10 |3 |non | 2
|11 |3 |erat | 3
|12 |3 |... | 4
By retrieving data from db I wold like that my output would be the same as follow:
line 1 Lorem ipsum dolor sit amet,
line 2 consectetuer adipiscing elit.
line 3 Phasellus non erat ...
That is the original layout of my text file.
Well, among different fetching methods I don't know exactly which one is the most useful for such a purpose. Moreover I don't know yet how to write a good code; but this is another problem.
thanks, Francesco