#{#string#10.0.0.1#;#string#10.0.0.2#;#string#10.0.0.3#}# and so forth. #### my @dnsSuffixList=('10.0.0.1', '10.0.0.2', ... ); #### my @dnsSuffixList = qw ( 10.0.0.1 10.0.02 10.0.03 10.0.04 ); my $str = join ('#;#string#', @dnsSuffixList); $str =~ s/$str/#{#string#$str#}#/; # print $str;
## my @dnsSuffixList=('10.0.0.1', '10.0.0.2', ... ); ##
## my @dnsSuffixList = qw ( 10.0.0.1 10.0.02 10.0.03 10.0.04 ); my $str = join ('#;#string#', @dnsSuffixList); $str =~ s/$str/#{#string#$str#}#/; # print $str;