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