Hi Monks, Is there any way to speed up the substitution.
The above replace line is in loop which executes 50,000 times and replace the '!' symbol everytime. So it takes around 10 mins and also the input string is so large. Thanks in advance.while ( index($group, "!") > -1 and $index<50000 ) { $group =~ s/!/\n/; index++; }
In reply to Fast Replacement by sathishselvam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |