[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Can't get sendmail to put subject right...



David Steffen <steffen@biomedcomp.com> wrote:
>Chomp is good for dealing with 0 or 1 newlines, but what if there are
>43 newlines at the end of $dest[0]?

how about

$dest[0]=~tr/\n//s

which will ensure there is only ever 1 newline character

or

$dest[0]=~tr/\n//d

which will chomp all newlines

# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org