According to the perldoc, the syntax for split is:
split /PATTERN/,EXPR,LIMIT
But the PATTERN can also be a single- or double-quoted string: split "PATTERN", EXPR. What difference does it make?
Edit: A difference I’m aware of is splitting on backslashes: split /\\/ vs split '\\'. The second form doesn’t work.
It looks like it uses that as “an expression to specify patterns”:
edit: I tested it with this:
Except for the
' 'special case, it looks just like a regular expression.