in reply to Re^2: unexpected behavior with split
in thread unexpected behavior with split
I didn't use \G as a way of avoid using $'. I could have come up with a way of using \G and not using $', but I chose this way.
I did get rid of $max+6. It makes no sense. I think it was added as a hack to make $min look like it's working better than it really does. In fact, $min is totally useless unless you force a break mid-word whern there is no space between pos $min and $max (which you don't do). Until $min's function is better defined, I just dropped it completely from my version. I suppose s/^(.{$min,$max2}\S)\s+//s would probably do what you have in mind, because of the else clause.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: unexpected behavior with split
by ww (Archbishop) on Aug 31, 2004 at 21:49 UTC |