in reply to Re^2: Unable to pass 0 number through form with CGI DBI backend
in thread Unable to pass 0 number through form with CGI DBI backend

Consider using a list of allowed characters with negation.

$mob =~ s/[^0-9-]//gi;
poj

Replies are listed 'Best First'.
Re^4: Unable to pass 0 number through form with CGI DBI backend
by ramachandrajr (Novice) on Sep 12, 2015 at 11:13 UTC
    that actually worked what do you think was the problem behind it i was just trying to block symbols not numbers using replacement.then why did that happen
      try print "[:;$%&@<>?]";
Re^4: Unable to pass 0 number through form with CGI DBI backend
by ramachandrajr (Novice) on Sep 12, 2015 at 11:16 UTC
    thanks man goodbye cya soon