HI Dan, Since i'm using activestate perl on windows xp i don't know whether paste will work or not. I'll try the hash of array.
Thanks for the help regards Aditi. On 6/22/05, Dan Klose <[EMAIL PROTECTED]> wrote: > > If I was doing this I would split the file on the gaps between blocks > and the use the unix paste function to assemble the blocks. > > &> paste A B C > D > > ? using a hash of arrays (HOA) to store each block and then go back over > the HOA each element at a time ... although this is probably overkill? > > On Wed, 2005-06-22 at 09:10 -0500, Larsen, Errin M HMMA/IT wrote: > > Aditi Gupta wrote: > > > Hi Perlers, > > > > > > I have a file as follows: > > > > > > #block1 > > > aaa > > > aaa > > > > > > #block2 > > > bbb > > > bbb > > > > > > #block3 > > > ccc > > > ccc > > > > > > and i want to append(or i should say merge) these blocks and get a > > > file like this: > > > > > > aaabbbccc > > > aaabbbccc > > > > > > how can this be done using perl? > > > please help.. > > > > > > regards > > > Aditi > > > > Hi, > > > > That looks like a fun and challenging problem. I bet Perl would be good > > at that. > > > > Have you tried any Perl code yet? > > > > This list works best when you present us some code you have tried that > > is not working. Then, we can help you fix it. There are many on the > > list who would be happy to write code for you for a reasonable fee, > > however. Is that what you are looking for? > > > > --Errin > > > -- > Daniel Klose > Mathematical Biology > NIMR > The Ridgeway > Mill Hill > London > NW7 1AA > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > >