On 9/6/06, Michael Alipio <[EMAIL PROTECTED]> wrote:
I want to adjust the last two digits to less 1:

perhaps something like this.
s/\d+$/(regexp being lookup minus 1/

s/(\d+)$/$1-1/e

is going to work, even though it is convoluted and not robust. For
example, '06.00' will become '06.-1'

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to