Now can just use the 'exists' check to find if you have a particular input Just another way of doing it....my $query = new CGI; my %inputs = $query->Vars; # All params passed in now in hash # Now can just use exists check to see if we have it if(exists $input{'page'} && exists $input{'page'} ne '') { # Do stuff } else { }
In reply to Re: Re: testing a non-existant hash entry...how to handle
by ropey
in thread testing a non-existant hash entry...how to handle
by S_Shrum
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |