loki has asked for the wisdom of the Perl Monks concerning the following question:
hi...
how can i search and replace a match with specific number of times using....
for eg.. $string="abcabdaaa"; i want to replace "a" by "i"... in $string 'n' times...how can i do that?s///;
"n" is an integer provided by user.
|
---|
Back to
Seekers of Perl Wisdom