Not tested, but it should give you the idea:
Maybe someone could suggest how to write the map block in a nicer way? It looks a bit clumsy.join('',(map { /\d/ ? "args$_" : $_ } split(/(\d+)/,$yourInputGoesHere +)))
In reply to Re: replace number by args<number>
by rovf
in thread replace number by args<number>
by himanshu.padmanabhi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |