Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Is $formdata present?

by jpeg (Chaplain)
on Jun 07, 2005 at 09:11 UTC ( [id://464199]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://464199]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-23 20:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found