$ perl -le' my @array = qw/ cow cowboy boy cat do dog /; my $string = join q//, @array; print $string; 1 while $string =~ s/(\w{2,})\1/$1/; print $string; ' cowcowboyboycatdodog cowboycatdog
In reply to Re: combining array items to match a certain string
by jwkrahn
in thread combining array items to match a certain string
by pc2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |