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."
- Thru "the next vowel" is irrelevant to our disagreement.
- 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.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.