On 12/20/07, banker123 <[EMAIL PROTECTED]> wrote: > I have a text file with a ragged hierarchy as shown below, I would > like to structure the data in a different format (also shown below) > please help.
It sounds as if you want to read a text file, build a Perl data structure in memory, perhaps modify parts of the structure, then write the data out to another file. Perl is good at this sort of thing. How far have you gotten on your own? Do you know how to read your data into a Perl data structure, for example? If you can post the code that you've written, someone may have some suggestions for how to improve it. Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/