to be more precise, the way we code-gen "literal" qregex nodes with
subtype "ignoremark+ignorecase" will only ever check the ordbaseat of
the first character in the literal against the haystack.
# New Ticket Created by Zoffix Znet
# Please include the string: [perl #128875]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=128875 >
If :i and :m are used on the regex, it appears to match the first letter. The
returned
# New Ticket Created by Zoffix Znet
# Please include the string: [perl #128873]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=128873 >
See the attached file or the same file in this gist:
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
# Please include the string: [perl #128872]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=128872 >
First let's take a look at example that works:
Code:
sub foo {
say
As far as I understand Jonathan’s position on this, is that you shouldn’t do
that. If you want to push to an array from multiple threads, you probably
should use a Channel, or use Supplies with an .act block.
As to the security implications of this behaviour, I must admit I haven’t
thought
On Mon, Aug 08, 2016 at 12:25:52AM -0700, Aleks-Daniel Jakimenko-Aleksejev
wrote:
> While it is probably a bad idea to push values into the same array from two
> threads, if I recall correctly rakudo is supposed to not crash like that no
> matter what.
>
> Code:
> my @a;
> start loop { @a.push:
# New Ticket Created by Aleks-Daniel Jakimenko-Aleksejev
# Please include the string: [perl #128870]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/Ticket/Display.html?id=128870 >
While it is probably a bad idea to push values into the same array