Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: My "if" is failing!

by choroba (Canon)
on Nov 28, 2012 at 22:06 UTC ( #1006117=note: print w/ replies, xml ) Need Help??

in reply to My "if" is failing!

Before the if and after branching, add

warn "$_, $sw.\n";
to see what's really going on if you are lazy to run the debugger. The regex must work the same regardless of the else part being commented or not.
لսႽ ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ

Comment on Re: My "if" is failing!
Select or Download Code
Replies are listed 'Best First'.
Re^2: My "if" is failing!
by Sumtingwong (Novice) on Nov 29, 2012 at 02:55 UTC

    OK, will try the debugger. I am still figuring out how to do a lot of this, thanks!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2015-10-10 05:34 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (254 votes), past polls