Help for this page

Select Code to Download


  1. or download this
        my $q = new CGI;
        my %vars = $q->Vars; # Fetch all CGI parameters
    ...
    
        # Fetch all defaults from the DB and return as a hash ref
        sub pop_defaults { my $r = { }; ... return $r }
    
  2. or download this
        $vars{$_} = $db_vars{$_} // $q->param($_) for ($q->param);
    
  3. or download this
        %vars{keys %db_vars} = values %db_vars;