in reply to How to make this substitutions without splitting the strings?
You don't need to split into an array to access positions in a string by index, you can use substr (or index to search for the indices of "-", or even a regex and pos). Also, you can output a new file with only the characters you want instead of manipulating a large string.
Show us some of your code and we can help you with that...
(I dimly remember seeing a similar question on PerlMonks recently... have you Googled your question?)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to make this substitutions without splitting the strings?
by BillKSmith (Monsignor) on Jul 28, 2014 at 12:24 UTC | |
by Anonymous Monk on Jul 28, 2014 at 13:45 UTC |