in reply to Re^3: substr question
in thread substr question
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)/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: substr question
by stevenmay (Initiate) on Jun 19, 2010 at 05:24 UTC | |
by ikegami (Patriarch) on Jun 19, 2010 at 06:22 UTC | |
by stevenmay (Initiate) on Jun 19, 2010 at 16:25 UTC |