Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Ah-ha! The light comes on...
but I still think one of us is mis-reading the node in question -- either by reading something into it (you) or failing to see a blind spot in leuchuk's understanding of short-circuiting (me).

Quoting what seem to me to be the relevant lines:

"As soon as the script has found the first vowel the script would continue with the next vowel but if the vowel wasn't found it would stop the whole search as it's not interesting whether the other vowels are in the string."
  1. Thru "the next vowel" is irrelevant to our disagreement.
  2. beginning with "but if..." thru "the whole search" - while your supposition about leuchuk's understanding of the operation of "and-ed ifs" may be accurate, I don't see any strong reason for that supposition. Consider, if you will, this pseudocode paraphrase of the the "but if ...the whole search" component of that clause:
    if (some vowel ! found ) { exit; }

The end of that sentence, "as it's not interesting whether the other vowels are in the string", seems to me to be no more or less than a second restatement of OP's spec -- all five vowels -- attributed by leuchuk at this point to "the script" he's talking about.

I hate to invoke a pro sports rule, but it seems to fit here: if the instant replay fails to show incontrovertible evidence that the call on the field was wrong, the call stands. Stretching the parallel almost to the breaking point, I think you've superimposed a supposition -- possible but unproven, to me -- over the replay.

In reply to Re^6: regex to find vowels in anyorder by ww
in thread regex to find vowels in anyorder by varghees

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 or How to display code and escape characters are good places to start.
Log In?

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2021-12-07 23:32 GMT
Find Nodes?
    Voting Booth?
    R or B?

    Results (34 votes). Check out past polls.