Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Hi Polyglot,

That's a brilliant approach. I had not thought about setting the /e regex qualifier and then putting code to be executed in the regex upon the finding of a match. That certainly opens the door to a broad span of possibilities. I had gone with the approach of splitting $SYSPBUFF into two parts one before and one beginning with the first presence of "batch =". The /e regex qualifier approach has much appeal in that with the (?=batch\s*=) lookahead it already automatically does that splitting on the fly while preserving the value of $SYSPBUFF other than for the specific subpatterns being sought. I will try creating a new version of my real world project code using the approach you've put forth.

fireblood

P.S.Just out of curiosity, how many languages do you speak and what are they? I'm a native speaker of US English and a tiny fraction of Cherokee, and also took courses in German, Chinese, Hebrew, and Vietnamese in high school and college. Each language studying experience not only provides access to the language, but also to the music, food, dress, customs, and other aspects of others' cultures. I think that people who are polyglottal are also polycultural.

Cheers!


In reply to Re^2: 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 surveying the Monastery: (3)
As of 2024-03-29 02:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found