>> 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

Reply via email to