in reply to Is $formdata present?

would either of these work?

if (length($formdata{'num'}) == 0) { #... }

if ($formdata{'num'} eq '' ) { #... }

obligatory 'use CGI' suggestion goes here

--
jpg

Replies are listed 'Best First'.
Re^2: Is $formdata present?
by ecuguru (Monk) on Jun 07, 2005 at 17:40 UTC
    Yes and no..
    Yes it works and it will execute correctly.
    No because you get runtime warnings about trying to do operations with a nonexistant variable
    If you have your code online and hit enough times, it just jams up the error log something fierce.