Add a supplied() function

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-06-11 15:40:55 -07:00
parent 99728d5695
commit 774aac1228

View File

@ -51,6 +51,7 @@ our @EXPORT = qw(
progress_message_nocompress
progress_message2
progress_message3
supplied
read_action_param
set_action_param
);
@ -1299,6 +1300,15 @@ sub split_list1( $$ ) {
@list2;
}
#
# Determine if a value has been supplied
#
sub supplied( $ ) {
my $val = shift;
defined $val && $val ne '';
}
#
# Pre-process a line from a configuration file.