in reply to Re: Remove from character to end of line
in thread Remove from character to end of line

But that has to capture. You can do without capture:
s!/.*!!;
It's smaller code too. ;-)

Abigail

Replies are listed 'Best First'.
Re: Re: Remove from character to end of line
by sdyates (Scribe) on Aug 01, 2002 at 17:12 UTC

    GREAT!!!

    Not only smaller code, but smart code too. I knew there had to be an easy way. It is amazing how dumb I feel with out my reference books.

    Thanks much,
    Simon