Gets rid of the loop, at least *grin*.my $a = "ABABA"; my $b = "BB--B-BB"; $b =~ s/B/\%c/g; printf $b, unpack 'c*', $a;
-- Foxcub
#include www.liquidfusion.org.uk
In reply to Re: String replacement
by Tanalis
in thread String replacement
by wallacei
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |