Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Dear JohnGG, tybalt89, Anonymous Monk, AnomalousMonk, and hv,

Thanks so much for your replies. I had never considered in-lining the string and then processing it as a file, but it's clearly a very elegant solution, not only by virtue of solving the problem but also making the code a lot clearer and easier to read and maintain. And to Anonymous, I was not aware of the technique that your code shows whereby capture buffer numbers are reused so that regardless of which alternative matched, the capture buffer numbers are still the same. Very cool. And thanks for the referral to Regex::Common, a good resource.

And to Anomalous, wow, thanks for the reference to the special backtracking control verbs, that's another new area for me to explore.

My understanding of how the voting works when there are multiple responders is that I click on the O++, O--, or O+=0 buttons to allocate points across the responders, and these are limited to awarding a single upvote, a single downvote, or a single nothing vote respectively, there's no mechanism for the OP to award 50% to one, 25% to another, and so forth. But other readers can come along, read through all of the responses, and add their single upvotes or downvotes, and eventually with enough additional readers chiming in, the distributions of 50%, 25%, etc. will emerge from the population of voters rather than from a single voter. And I guess that the box at the bottom of all of the posts labeled vote! is for awarding a point to the discussion as a whole if it seems meritorious. I'm still learning about how the voting system works.

Thanks again to all!

In reply to Re: Unable to constrain the effect of a negative lookahead by fireblood
in thread Unable to constrain the effect of a negative lookahead by fireblood

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2024-04-19 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found