I'm getting the same thing on my box.

perl 5.6.1 - build from source not rpm - RedHat 7.1
#!/usr/bin/perl while ("this_is_broken_" =~ /(.*?)_/gs) { print "($1) "; }

Here's its debug output.
Freeing REx: `,'
Compiling REx `(.*?)_'
size 10 first at 5
1: OPEN1(3)
3: MINMOD(4)
4: STAR(6)
5: SANY(0)
6: CLOSE1(8)
8: EXACT <_>(10)
10: END(0)
floating `_' at 0..2147483647 (checking floating) anchored(SBOL) implicit minlen 1
Guessing start of match, REx `(.*?)_' against `this_is_broken_'...
Found floating substr `_' at offset 4...
Guessed: match at offset 0
Matching REx `(.*?)_' against `this_is_broken_'
Setting an EVAL scope, savestack=9
0 <> <this_is_brok> | 1: OPEN1
0 <> <this_is_brok> | 3: MINMOD
0 <> <this_is_brok> | 4: STAR
Setting an EVAL scope, savestack=9
0 <> <this_is_brok> | 6: CLOSE1
0 <> <this_is_brok> | 8: EXACT <_>
failed...
SANY can match 1 times out of 1...
1 <t> <his_is_brok> | 6: CLOSE1
1 <t> <his_is_brok> | 8: EXACT <_>
failed...
SANY can match 1 times out of 1...
2 <th> <is_is_brok> | 6: CLOSE1
2 <th> <is_is_brok> | 8: EXACT <_>
failed...
SANY can match 1 times out of 1...
3 <thi> <s_is_brok> | 6: CLOSE1
3 <thi> <s_is_brok> | 8: EXACT <_>
failed...
SANY can match 1 times out of 1...
4 <this> <_is_brok> | 6: CLOSE1
4 <this> <_is_brok> | 8: EXACT <_>
5 <this_> <is_brok> | 10: END
Match successful!
Guessing start of match, REx `(.*?)_' against `is_broken_'...
Not at start...
Match rejected by optimizer
Freeing REx: `(.*?)_'

Outputs: (this)
#!/usr/bin/perl while ("this_is_broken_" =~ /(.*?)_/g) { print "($1) "; }
Outputs: (this) (is) (broken)

BMaximus

In reply to Re: Is your Perl broken? Bug help needed. by BMaximus
in thread Is your Perl broken? Bug help needed. by japhy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.