Re: Prepending an equals sign to a numeric value returns empty result

2015-09-08 Thread SSC_perl
On Sep 7, 2015, at 10:15 AM, Andrew Solomon wrote: > > If I were you I'd do something like > > print STDERR "UPTO 1\n"; > > in various places to see what's actually being executed. Thanks for the reply. I had done that with Data::Dumper and I couldn't see where the problem was coming

Re: Prepending an equals sign to a numeric value returns empty result

2015-09-07 Thread Andrew Solomon
I can't replicate a problem with your inner if-statement. My feeling is that the code isn't getting past the outer if-conditional. if ($main::global->{form}->{'setSearchBox'} eq $field || $main::global->{form}->{'setSearchBox'} eq 'both') { If I were you I'd do something like print

Prepending an equals sign to a numeric value returns empty result

2015-09-05 Thread SSC_perl
I've run across something that seems strange to me and I'm hoping someone has seen this before. In SurfShop, you can search the product database by either item #, product name, or full description. When searching by item id, let's say 'AM', the code will find any part # with the