You've shown how you print the form, but not what you do with the values you get. Somewhere, Perl is converting the strings to numbers. '/' is not a part of a number string, so that is where Perl quits trying.
It is perilous, but you could eval the string to get the division done. Perilous in case some rascal gets you to eval "system '/bin/rm', '-rf', $ENV{HOME};". You could also look at Math::Expr, which is perhaps safer.
After Compline,
Zaxo
In reply to Re: problem with form value (using cgi.pm)
by Zaxo
in thread problem with form value (using cgi.pm)
by MCS
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |