|Welcome to the Monastery|
Can we "grow" a string?by Anonymous Monk
|on Jun 17, 2009 at 08:23 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
I would like to ask if there is a way to "grow" a string...
If you have:
and you want the length of substring FGHI to reach, say 7. Can we add to FGHI, first E, then J, then D and stop?
The string is merely an example, because on my program, I won't know the format of the string beforehand.. I just end up with small substrings, which, if they have length less than 7, must be expanded both ways, in order to reach the limit of 7.