in reply to replace number by args<number>
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 +)))
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: replace number by args<number>
by JavaFan (Canon) on Mar 20, 2009 at 12:09 UTC | |
by rovf (Priest) on Mar 20, 2009 at 12:13 UTC | |
|
Re^2: replace number by args<number>
by AnomalousMonk (Archbishop) on Mar 20, 2009 at 12:35 UTC |