Re: Concatenate similar data in array

2008-04-17 Thread Rob Dixon
anthony brooke wrote: > Hello, my logic is really bad, here is I want to do. > > my @list = qw(a b a a d e e ); > > I want to compact the array by concatenating the adjacent vowels and > consonant together, like for the above it should become, > > my @list2 = qw(ab aa d ee); > > How do I get

Re: Concatenate similar data in array

2008-04-17 Thread Jenda Krynicky
Date sent: Wed, 16 Apr 2008 21:47:20 -0700 (PDT) From: anthony brooke <[EMAIL PROTECTED]> Subject: Concatenate similar data in array To: beginner perl mailling list > Hello, my logic is really bad, here is I want to do.

Concatenate similar data in array

2008-04-16 Thread anthony brooke
Hello, my logic is really bad, here is I want to do. my @list = qw(a b a a d e e ); I want to compact the array by concatenating the adjacent vowels and consonant together, like for the above it should become, my @list2 = qw(ab aa d ee); How do I get the @list2 ? Thanks. Send instant mess