Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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
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 exploiting the Monastery: (7)
As of 2015-07-05 05:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls