diff options
author | Joachim Tingvold <joachim@tingvold.com> | 2015-03-29 13:00:42 +0200 |
---|---|---|
committer | Joachim Tingvold <joachim@tingvold.com> | 2015-03-29 13:00:42 +0200 |
commit | 9f4dd738573bdb7e370569d29efcf605cc38d2ec (patch) | |
tree | 16f7d1411444473592bf974d076ff861b7c3f2d0 | |
parent | 6b40bebe9560718e9d83183e5540f2cb0055127d (diff) |
Skip blank lines.
-rwxr-xr-x | bootstrap/make-missing-conf.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bootstrap/make-missing-conf.pl b/bootstrap/make-missing-conf.pl index b128695..0159452 100755 --- a/bootstrap/make-missing-conf.pl +++ b/bootstrap/make-missing-conf.pl @@ -40,7 +40,7 @@ my $base_ipv4 = Net::IP->new( $nms::config::base_ipv4net ); my ($cp_oct, $cs_oct, $ct_oct) = ($nms::config::base_ipv4net =~ m/^(\d+)\.(\d+)\.(\d+)\..*/); while ( <STDIN> ){ - next if ( $_ =~ m/^#/); + next if ( $_ =~ m/^(#|$)/); # comment or blank line my $line = $_; chomp $line; # <v4 net> <v6 net> <network-name> |