Split a string into pieces using a separator character.
returnedArray = str(str, charString)
returnedArray - type: array of str
str - type: str
charString - type: str
An array of strings, each of which is a component of the given string.
Similar to the Perl split function.
@CODE
L("arr") = split("ab|cd|efg", "|");
"output.txt" << L("arr") << "\n";
"output.txt" << L("arr")[2] << "\n";
prints out:
ab cd efg
efg