in reply to Splitting multiple patterns
- Split multiple times, using multiple statements. This is no time for “golf.” Keep it simple and direct.
- If the problem appears to be one that has already been dealt with by a CPAN module, e.g. Text::CSV, use it in preference to a hand-made solution.
- Get to know the many modules in Regexp::Common. (Do a search ... there are many more than just the ones that the hotlink above will show you.)