but a suggestion that a regex approach might make sense.
That had already been done.
this will work better, certainly.
That's a lot of code. Does it do anything different than the following?
print $string =~ /^(.{0,100})(?!\S)/;
In reply to Re^4: substr question
by ikegami
in thread substr question
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |