Great Circle Associates Majordomo-Users
(May 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: RE: archive2.pl and EOL
From: "Kendall P. Bullen" <kendall @ lists . tax . org>
Date: Mon, 5 May 1997 15:41:33 -0400 (EDT)
To: Peter Bostrom <pbostrom @ morino . org>
Cc: "'Christopher Adams'" <chris @ sparkie . osl . state . or . us>, "'majordomo-users @ greatcircle . com'" <majordomo-users @ GreatCircle . COM>
In-reply-to: <01BC595A.144C3A80@pc12078.morino.org>

On Mon, 5 May 1997, Peter Bostrom wrote:

>      #substitute ends with 0-9 and = to nothing, and vice versa
>      $_=~s/=[0-9][0-9]$//;
>      $_=~s/=[0-9]$//;
>      $_=~s/=$//;

So, perhaps this would work:

s/=\d?\d?$//;

That should replace '=' followed by 0-2 digits, at the end of a line,
with nothing, using one substitution instead of three.

Kendall



Follow-Ups:
References:
Indexed By Date Previous: Re: archive2.pl and EOL
From: Rich Pieri <rich.pieri@prescienttech.com>
Next: Re: archive2.pl and EOL
From: "Mats Dufberg" <Mats.Dufberg@abc.se>
Indexed By Thread Previous: Re: archive2.pl and EOL
From: Rich Pieri <rich.pieri@prescienttech.com>
Next: Re: archive2.pl and EOL
From: Dave Wolfe <dwolfe@risc.sps.mot.com>

Google
 
Search Internet Search www.greatcircle.com