Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re^3: string error message

by ysth (Canon)
on Jun 16, 2009 at 05:59 UTC ( #771891=note: print w/ replies, xml ) Need Help??

in reply to Re^2: string error message
in thread string error message

That regex won't produce undef for one of the captures only some of the time - the match is failing, so all the variables are presumably undef.

Comment on Re^3: string error message
Replies are listed 'Best First'.
Re^4: string error message
by Marshall (Prior) on Jun 16, 2009 at 06:20 UTC
    Not necessarily. That may not happen in the general case. This gets complex. In this particular regex, I think you are right, the first undef results in subsequent undef's. In any event the code I showed will show what happens. As a response I tried to show a method to debug this. The "here is how to grow wheat" instead of "here is some wheat" idea. I'm hoping that it helped.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2015-11-29 19:21 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (752 votes), past polls