in reply to Re: Array / String
in thread Array / String

Thanks moritz, in the mean time i figured out this:
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;
What do you think is faster? sprintf or sed?

Replies are listed 'Best First'.
Re^3: Array / String
by moritz (Cardinal) on Oct 12, 2011 at 11:53 UTC