|The stupid question is the question not asked|
String interpolationby hotshot (Prior)
|on Dec 09, 2004 at 12:55 UTC||Need Help??|
hotshot has asked for the wisdom of the Perl Monks concerning the following question:
I have a string defined as follows:
$idx will be assigned with integer values in a loop as follows:
The thing is that I want $str in the loop to be interpulated with the value of $idx in each loop iteration (the above code will not take there of course), meaning do_something() will get a different parameter each loop iteration ('params.0.arg', 'params.1.arg', etc.).
How can I achive that?
Retitled by davido: Corrected spelling of 'interpolation' to improve searchability.