Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Regex capture consumed by non-capturing match

by ribasushi (Monk)
on Jul 20, 2007 at 16:00 UTC ( #627819=note: print w/ replies, xml ) Need Help??


in reply to Re: Regex capture consumed by non-capturing match
in thread Regex capture consumed by non-capturing match

The children have been using strictures since day one. They were omitted from the example to keep it as small as possible. And besides they do not yield any information except what I already know - matches get undefined. So Teacher, leave those kids alone, thank you very much.
As far as the fine perlre I misread it as in until the next successful capturing match, which does not seem to be the case as it was pointed out.


Comment on Re^2: Regex capture consumed by non-capturing match
Re^3: Regex capture consumed by non-capturing match
by GrandFather (Cardinal) on Jul 20, 2007 at 21:28 UTC

    We are pleased that the children are taking note of their lessons. ;)

    I assumed that you were not using strictures because you didn't mention the warning and "uninitialized value" warnings are not subtle. I see now that you meant to imply that the mechanism of the bug was subtle, rather than that the effects were subtle or the location of the faulty code was difficult to determine. My appologies for the misunderstanding.

    Note that we only know what you tell us. We didn't know from your node what the problem was - you didn't even present the output generated, nor the output you expected, let alone that you knew that the issue was an uninitialized value.


    DWIM is Perl's answer to Gödel

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://627819]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2014-07-29 03:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (211 votes), past polls