in reply to problem with form value (using cgi.pm)
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: problem with form value (using cgi.pm)
by MCS (Monk) on Feb 16, 2004 at 13:38 UTC |