NST
NST copied to clipboard
perl: wrong nesting: balanced pairs of regex delimiters inside regex
Regular expressions with paired delimiters can contain balanced pairs of that delimiters. In this code:
package test;
sub test1 {
m{
\d{2}\s\d
}x;
}
sub test2 {
#
}
"test1" and "test2" must be on the same level (inside "test"), but now only "test1" shown inside "test1" ("test2" on the same level with "test")
PS: github code highlighter parses this code wrong too