in reply to Oneliner with substring trimming and padding
What about the following approach:
- adding a "maximum number" of padding-characters at the end of your substring
- cutting the substing back to the desired number of characters
Just an idea. Rata
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Oneliner with substring trimming and padding
by Neighbour (Friar) on Jul 17, 2012 at 12:18 UTC |
In Section
Seekers of Perl Wisdom