bory has asked for the wisdom of the Perl Monks concerning the following question:
=> @id=("aaa bbb ccc","ddd eee fff","ggg hhh iii","jjj kkk lll"); I don't what to do to print only "aaa" and then "bbb" then "ccc".... exactly i want to store each one in a different string. Thank you very much for your time.my $ident="aaa bbb ccc-ddd eee fff-ggg hhh iii-jjj kkk lll-"; my @id= split/-/,$ident;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: spliting arrays
by davido (Cardinal) on Nov 05, 2003 at 08:06 UTC | |
| |
|
Re: spliting arrays
by allolex (Curate) on Nov 05, 2003 at 11:22 UTC |