Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: My "if" is failing!

by Sumtingwong (Novice)
on Nov 30, 2012 at 06:32 UTC ( #1006417=note: print w/replies, xml ) Need Help??


in reply to Re: My "if" is failing!
in thread My "if" is failing!

Yeah, to say my logic was wrong was an understatement! I played around with the original for a few minutes today and inserted a few print statements--my poor man's debugger. I didn't realize that the search string was going to go through every line in the html file--don't quite know what my thinking was when that is what I expected the input file to do. Makes sense now and the elegance of your solution is clear to me now.