$s="ab"; $s=~s/a/AA/; # $s is now "AAb"
I would like to achieve the same with something similar to the x multiplier: $n=2; $s="A"x$n."b"; # $s is "AAb" $s="ab"; $n=2; $s=~s/a/Ax$n/; # doesn't work, of course; $s is Ax2b Is it possible at all? Thanks Jorge Almeida -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/