will probably do the job nicely. Remember that Perl array indexes start with zero. While writing a program that will deal with "hundreds of" such strings, be sure also to write your program in such a way that it aggressively looks for situations that it does not expect to see, and
s whenever appropriate. When inputs are complex and come in many different flavors, it is very, very easy to write code that "seems to" work.