in reply to Why split function treats single quotes literals as regex, instead of a special case?
The single space character is a special case for split, anything else is treated as a regular expression, be it a string, function call, etc.
Regular expressions are also treated a bit differently than regular expressions in qr//, m// and s///.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Why split function treats single quotes literals as regex, instead of a special case?
by AnomalousMonk (Archbishop) on Aug 14, 2020 at 04:38 UTC | |
by jwkrahn (Abbot) on Aug 14, 2020 at 09:16 UTC | |
by AnomalousMonk (Archbishop) on Aug 14, 2020 at 18:17 UTC | |
by jcb (Parson) on Aug 14, 2020 at 23:07 UTC |