# New Ticket Created by  Sam S. 
# Please include the string:  [perl #130711]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=130711 >


Normally, the `**` quantifier doesn't care whether the count is
specified as a literal or as an expression enclosed in `{ }`:

    say "abc".match(/\w ** 2/)         # 「ab」
    say "abc".match(/\w ** {2}/)       # 「ab」

    say "abc".match(/\w ** 2/, :ov)    # (「ab」 「bc」)
    say "abc".match(/\w ** {2}/, :ov)  # (「ab」 「bc」)

But when the `:exhaustive` flag is active, it misbehaves when the
count is specified as a `{ }` expression:

    say "abc".match(/\w ** 2/, :ex)    # (「ab」 「bc」)
    say "abc".match(/\w ** {2}/, :ex)  # (「ab」 「a」 「bc」 「b」)

Reply via email to