Keep It Simple, Stupid | |
PerlMonks |
Is $formdata present?by ecuguru (Monk) |
on Jun 07, 2005 at 08:26 UTC ( [id://464183]=perlquestion: print w/replies, xml ) | Need Help?? |
ecuguru has asked for the wisdom of the Perl Monks concerning the following question:
Hi I've got code below (copy/pasted) that works for grabbing data from a post/get request. Can someone tell me what function I can use to check to see if a value was submitted or not? I have played with exists and defined, but couldn't get either to work right. A user can post and id and another number. If the number isn't provided, I have a default number that I replace it with later. But I can't figure out how to tell perl that if the value isn't submitted, tell me. Any ideas? And Thanks in advance!
Back to
Seekers of Perl Wisdom
|
|