>> Paul <[EMAIL PROTECTED]> writes: > > if ( $formdata{view_name} ne "" ) { > > $view = $formdata{view_name}; > > $viewtag = "1"; > > } > > For a simple boolean test, I usually find it more readable to be less > explicit in these cases: > > if ( $formdata{view_name} ) { > # etc. > } Perhaps also noteworthy is the fact that things like '$foo{bar} eq ""' make the key 'bar' spring into existance in %foo. -w tells you about it. -- Marcelo
- testing null strings for form field values charles
- Re: testing null strings for form field values Mathew Hennessy
- Re: testing null strings for form field values Paul
- Re: testing null strings for form field value... M.W. Koskamp
- Re: testing null strings for form field value... Marcelo E. Magallon
- Re: testing null strings for form field v... Hasanuddin Tamir
- Re: testing null strings for form field v... Michael Fowler