No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Hi all,
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? Thanks Retitled by davido: Corrected spelling of 'interpolation' to improve searchability. In reply to String interpolation by hotshot
|
|