Help for this page

Select Code to Download


  1. or download this
        my $error = $s->error
          if ($count > 0);
        ## log this action
        &log_action('error')
          if ($count > 0);
    
  2. or download this
    if ($count > 0) {
        my $error = $s->error;
        &log_action('error', $error);
    }
    
  3. or download this
        &log_action('error', $s->error)
            if ($count > 0);
    
  4. or download this
    sub log_action {
        my ($action_type, $string) = @_;
    ...
        
    ...
    }