Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

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

Replies are listed 'Best First'.
Re^3: Regex capture consumed by non-capturing match
by GrandFather (Sage) 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://627819]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2018-03-24 04:33 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (297 votes). Check out past polls.