Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: My "if" is failing!

by choroba (Abbot)
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
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2014-11-23 10:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (130 votes), past polls