> > I have an arry like this:
> > 
> > @arry=('AA bb','BB','CC AG')
> > 
> > How do I turn it into new array like this:
> > 
> > @new_array=('AA','bb','BB','CC','AG')
> 
> my @new_array = split ' ', "@arry";

Both line codes work perfectly:

my @new_array = map { split } @arry;
or 
my @new_array = split ' ', "@arry";


Thank you all for the help,

Li

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to