in reply to I'm splitting a scalar and putting the results in an array. Why is the first element empty?

split produces a list of the things either side of the match. If the match occurs at the very start of the data, then a null field is produced. This is Item0.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: I'm splitting a scalar and putting the results in an array. Why is the first element empty?
  • Download Code