3 ms·
Perl does that as well, and you can even choose the delimiters you wanna use: > For the constructs except here-docs, single characters are used as starting and
by chaosfox 9y ago
Perl does that as well, and you can even choose the delimiters you wanna use:
> For the constructs except here-docs, single characters are used as starting and ending delimiters. If the starting delimiter is an opening punctuation (that is (, [, {, or < ), the ending delimiter is the corresponding closing punctuation (that is ), ], }, or >). If the starting delimiter is an unpaired character like / or a closing punctuation, the ending delimiter is the same as the starting delimiter. Therefore a / terminates a qq// construct, while a ] terminates both qq[] and qq]] constructs.