I’ve stumbled on some weird sigil behaviour. Is this expected?
The following throws “interesting” compile time errors (‘The “do” at line xx is missing terminator “end”’) a few lines later:
matcher = ~r{^(?<sequence>[[:digit:]]{1,9}) }
The following options don’t give me compiler errors though:
matcher = ~r/^(?<sequence>[[:digit:]]{1,9}) /
matcher = ~r{^(?<sequence>[[:digit:]]+) } # not what I want though!
Is this a compiler bug, or should I always use / with the ~r sigil?