I hear all, I see all :P

Hi Corion and Alena

I've heard of pos() related bugs , but I don't think they can be tripped by this code
Bug #67140 for perl5: Perl 5.10.0 smart match with m//g fails to update pos
Bug #90680 for perl5: m//, s/// on the smart-match exception list
Bug #68564 for perl5: /g failure with zero-width patterns
Bug #72766 for perl5: pos() uses sv_pos_b2u/sv_pos_u2b is about Bug #116907 for perl5: perl doesn't handle m{}g for >= 2GB files even with largefiles and 64bitall

Simple way to guarantee no infinity loop :) change from while to foreach

for my $loop ( 1 .. length $_ ){ ## guaranteed not to infinity loop }

If there is infinity on the server, narrow down which data, which %ENV ... pepper in extra prints, narrow it down to a subroutine ...

:)


In reply to Re^8: POD style regex for inline HTML elements by Anonymous Monk
in thread POD style regex for inline HTML elements by Lady_Aleena

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.