in reply to Re^2: In search of a better way to trim string length
in thread In search of a better way to trim string
Hm...yours doesn't produce the desired outputs.
Given the following inputs:
1) "thisisthelongesttopicthatwilleverbepostedinperlmonks"
2) "this is the longest topic that will ever be posted in perlmonks"
Desired outputs:
1a) thisisthelongesttopicthatwille ...
2a) this is the longest topic ...
Yours gave the following outputs:
1a) thisisthelongesttopicthatwille...
verbepostedinperlmonks
2a) this is the longest topic that will ever be posted in perlmonks
Did I miss something?
In Section
Seekers of Perl Wisdom