perlquestion
visnu
<p>is there a way to perform a regular expression search moving <i>backwards</i> through a string? eg, the last whitespace character?</p>
<p>
maybe i'm asking the wrong question. i'm working on code that wraps text at say 80 columns.. the text can break at spaces and punctuation, but i have to do something like:</p>
<pre>
$i = rindex $_, ' ', $WRAP_WIDTH;
$next_line = substr $_, $i, length, "";
</pre>