|Syntactic Confectionery Delight|
String manipulationby hotshot (Prior)
|on Aug 01, 2004 at 13:24 UTC||Need Help??|
hotshot has asked for the
wisdom of the Perl Monks concerning the following question:
I have three arguments: initial value, step and number of members. I need to create a string as follows:
Like arithmetic sequence. How can I create the string efficiently?
Of course I can do:
But I'm sure there's elegant ways than that.
If it matters or not, $step will always be 1 or 2 (according to another parameter I have lets say ($isDoubleStep)).