in reply to How to split an array identified by numbers to get the correct sequence of elements

substr
  • Comment on Re: How to split an array identified by numbers to get the correct sequence of elements

Replies are listed 'Best First'.
Re^2: How to split an array identified by numbers to get the correct sequence of elements
by BillKSmith (Monsignor) on Apr 19, 2012 at 12:45 UTC
    Note: In perl (unlike in "C"), strings are not arrays. Your array has only one element - the string. It is possible to split the string into array elements and process that array, but it is almost always better to store and process your data as a string. All other responders have used this approach without comment.