in reply to Unable to pass 0 number through form with CGI DBI backend
Consider:
use strict; use warnings; my $mob = '070222000123'; print "$mob\n"; $mob =~ s/[:;$%&@<>?]//gi; print "$mob\n";
Output
070222000123 7222123
You strip them out before you do anything database related. Basic debugging can include simply printing data to the screen so you know that it is what you expect it to be. Basic debugging checklist.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Unable to pass 0 number through form with CGI DBI backend
by ramachandrajr (Novice) on Sep 12, 2015 at 10:52 UTC | |
by poj (Abbot) on Sep 12, 2015 at 10:57 UTC | |
by ramachandrajr (Novice) on Sep 12, 2015 at 11:13 UTC | |
by poj (Abbot) on Sep 12, 2015 at 11:27 UTC | |
by ramachandrajr (Novice) on Sep 12, 2015 at 11:16 UTC | |
by marto (Cardinal) on Sep 12, 2015 at 10:56 UTC | |
by ramachandrajr (Novice) on Sep 12, 2015 at 11:02 UTC | |
by marto (Cardinal) on Sep 12, 2015 at 11:07 UTC |