in reply to If doesn't work
I usually wrap debug code in debug "start" and "end" tags. When I go back to clean up a large script, it's quick and easy. The first line of code above sets the font to a fixed width. This makes it easier to see a space embedded in the middle of a word. The next lines print the two passwords one above the other like so:# debug start print "<FONT FACE='COURIER NEW'>\n"; print "'" . $query->param('pass') . "'<BR>\n"; print "'" . @file[1] . "'<BR>\n"; print "</FONT>\n"; #debug end
This makes a character by character visual analysis easier and the single quotes make it obvious if you have padded white space before or after the password (but won't reveal an unchomped newline. Maybe you should use a <PRE> tag for that. Just a thought. Hope this helps!'diue34Tx' 'diue34Tx'
|
|---|