Re: how to delete elements in AoA

2006-09-05 Thread chen li
Hi guys, Thank you all for the input and this is a summary email. Question: How to paste data into a CGI script and then delete empty elements in AoA pasted data format: 1 1 1 2 2 2 3 3 3 expected AoA ([1,1,1], [2,2,2], [3,3,3], ); script/answer: my $cgi=CGI->new(); my $

Re: how to delete elements in AoA

2006-09-04 Thread Rob Dixon
John W. Krahn wrote: chen li wrote: --- "John W. Krahn" <[EMAIL PROTECTED]> wrote: chen li wrote: Sorry to bother again. I get an AoA containing empty elements like these: my @data=( [1,1,1], [2,2,2], [], [3,3,3], [] ); How can I re

Re: how to delete elements in AoA

2006-09-04 Thread D. Bolliger
chen li am Montag, 4. September 2006 15:51: > --- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > > chen li wrote: > > > --- "John W. Krahn" <[EMAIL PROTECTED]> wrote: [...] > > > my @data=( > > > ['1','1','1'], > > > ['2','2','2'], > > > [''], > > > ['3','3','3

Re: how to delete elements in AoA

2006-09-04 Thread chen li
--- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > chen li wrote: > > > > --- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > > > >>chen li wrote: > >> > >>>Sorry to bother again. I get an AoA containing > >>empty > >>>elements like these: > >>> > >>>my @data=( > >>> [1,1,1], > >>>

Re: how to delete elements in AoA

2006-09-03 Thread John W. Krahn
chen li wrote: > > --- "John W. Krahn" <[EMAIL PROTECTED]> wrote: > >>chen li wrote: >> >>>Sorry to bother again. I get an AoA containing >>empty >>>elements like these: >>> >>>my @data=( >>> [1,1,1], >>> [2,2,2], >>> [], >>> [3,3,3], >>> [] >>>

Re: how to delete elements in AoA

2006-09-03 Thread Dr.Ruud
chen li schreef: > my @data=( >[1,1,1], >[2,2,2], >[], >[3,3,3], >[] > ); > > [remove empty element] Can I > use grep function to do it? Yes, but you might also be able to not insert them. -- Affijn, Ruud "Gewoon is een tijger

Re: how to delete elements in AoA

2006-09-03 Thread John W. Krahn
chen li wrote: > Hi guys, Hello, > Sorry to bother again. I get an AoA containing empty > elements like these: > > my @data=( >[1,1,1], >[2,2,2], >[], >[3,3,3], >[] > ); > > How can I remove the empty element in this AoA? Can I