substr is actually quite cheap as it doesn't copy the char data from the the original string, it just makes an alias to it.
The strings that I am spliting are paths, and because my sub then looks for the place of a slash, which should be 8 bits
I don't think so, on UTF8 strings byte offsets and char offsets can be different!
In reply to Re^3: Common Substrings
by salva
in thread Common Substrings
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |