in reply to Trouble testing if on-the-fly generated checkboxes are checked

Without checking your code, just going on your post–

perl -le 'print "YUM!" if "tamales" == "rellenos"' YUM!

== forces numeric comparison which forces both string sides to zero, making them equal. Update: I should have said, use eq instead for string equality comparisons.