Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

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

by ribasushi (Pilgrim)
on Jul 20, 2007 at 16:00 UTC ( [id://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

Replies are listed 'Best First'.
Re^3: Regex capture consumed by non-capturing match
by GrandFather (Saint) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://627819]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (6)
As of 2024-04-23 09:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found