About the Perl multiple lines problem

2010-01-13 Thread Majian
Hi,all There is a problem confused me for a long time . It is: cat test.txt 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, Then I want to this result : 1 2 3 6 9 4 7 10 5 8 11 I don't know how to print the result use the Perl scrip

Re: About the Perl multiple lines problem

2010-01-13 Thread Jim Gibson
At 6:47 PM +0800 1/13/10, Majian wrote: Hi,all There is a problem confused me for a long time . It is: cat test.txt 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, Then I want to this result : 1 2 3 6 9 4 7 10 5 8 11 I don't know

RE: About the Perl multiple lines problem

2010-01-13 Thread Grove, Michael
At 6:47 PM +0800 1/13/10, Majian wrote: >Hi,all > >There is a problem confused me for a long time . >It is: > >cat test.txt > >1, >2, >3, >4, >5, >6, >7, >8, >9, >10, >11, > > > >Then I want to this result : >1 2 3 6 9 >4 7 10 >

Re: About the Perl multiple lines problem

2010-01-14 Thread Majian
On 01/14/2010 12:25 AM, Grove, Michael wrote: > At 6:47 PM +0800 1/13/10, Majian wrote: > >> Hi,all >> >> There is a problem confused me for a long time . >> It is: >> >> cat test.txt >> >> 1, >> 2, >> 3, >> 4, >> 5, >> 6, >> 7, >> 8, >> 9, >> 10, >> 11, >> ---