in reply to Re: Searching a collection of signatures
in thread Searching a collection of signatures

In fact, I tried chomp first, because I'm not trying to remove newlines, just trailing %s, which chop will happily eat. That said, I can probably just

s/%$//m for @sigs;
or some such instead.

--
:wq

Replies are listed 'Best First'.
Re: Re: Re: Searching a collection of signatures
by blakem (Monsignor) on Nov 07, 2001 at 12:31 UTC
    After rereading the chomp docs, I realized that chomp will behave like the above regex when $/ is set to '%'...
    # One way.... { local $/ = '%'; chomp @sigs; # chomp uses the value of $/ to figure out what to rem +ove } # or another s/%$// for @sigs;

    -Blake