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.
In reply to Re: Unable to pass 0 number through form with CGI DBI backend
by marto
in thread Unable to pass 0 number through form with CGI DBI backend
by ramachandrajr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |