# Call responsible message parser.
my $action = $logfile_parsers{$parser}->(@message);
- # If the parser successfully parsed the message, an action
- # has been returned.
- if ($action) {
+ # In case an action has been returned, return it too.
+ if (defined($action)) {
# Return which action should be performed.
return "count $action";
}
- # If the parser was not able to parse the the given message
- # in the right way, return Nothing.
- return;
+ # Return undef, no action required.
+ return undef;
}
#