This is starting to get interesting! I am also using Solaris 8. Now, we may have used slightly different build options, gcc versions and Solaris patch levels, but it seems unlikely that this should make a difference.

Can you confirm that you did not see the dollar sign at the end of the regex?

It is worth mentioning that I found the behaviour to be highly sporadic (though not over different executions of the same code - in other words, highly sensitive to the particular regex). For example, if I remove a single element from the regex, all is well. Also, I observed occasions where adding a second line saying my $re = qw'whatever';, identical to the first, would cause the error to disappear. Finally, I saw similar behaviour using Perl v5.8.0 built with symbolic information retained, but different extraneous characters were appended to the regex, using the same code.

Kevin


In reply to Re: Re: Re: Re: Worrying regex issue with 5.8.0 by ruscoekm
in thread Worrying regex issue with 5.8.0 by ruscoekm

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.