cdherold has asked for the wisdom of the Perl Monks concerning the following question:
It's simple enough to put a string into an array using split() ... but that's if you've got something to split on ... like say a space or a "," ... or even a word boundry. But what do you do when all you've got is a string of characters ... say a long DNA sequence something like ... AGTCGTCGATGCTGATGCTAGCCCC ... ? i was looking for a "letter boundry" type of anchor (something similar to word boundry - \b), but couldn't find one. Did i miss something? If not, how do i split this string into an array (one letter for each element in the array)?
thanks,
chris
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: String into Array
by BeernuT (Pilgrim) on Feb 11, 2002 at 01:56 UTC | |
|
Re: String into Array
by blakem (Monsignor) on Feb 11, 2002 at 02:17 UTC | |
|
Re: String into Array
by rob_au (Abbot) on Feb 11, 2002 at 01:59 UTC | |
|
Re: String into Array
by chromatic (Archbishop) on Feb 11, 2002 at 01:56 UTC | |
|
Re: String into Array
by little (Curate) on Feb 11, 2002 at 01:56 UTC | |
|
Re: String into Array
by particle (Vicar) on Feb 11, 2002 at 13:36 UTC | |
|
Re: String into Array
by hopes (Friar) on Feb 11, 2002 at 18:51 UTC |