frasco has asked for the wisdom of the Perl Monks concerning the following question:
|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 |... | 4By 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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: fetching data from MySQL
by samtregar (Abbot) on Apr 27, 2008 at 16:09 UTC | |
|
Re: fetching data from MySQL
by TOD (Friar) on Apr 27, 2008 at 11:52 UTC | |
by samtregar (Abbot) on Apr 27, 2008 at 16:11 UTC | |
|
Re: fetching data from MySQL
by oko1 (Deacon) on Apr 27, 2008 at 15:06 UTC | |
|
Re: fetching data from MySQL
by olus (Curate) on Apr 27, 2008 at 14:05 UTC | |
|
Re: fetching data from MySQL
by frasco (Beadle) on Apr 28, 2008 at 08:09 UTC |