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
In Section
Seekers of Perl Wisdom