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

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



The beauty of chomp is that it only removes newlines.  If there is no
newline, it doesn't do anything to the string.  There is really no reason
not to chomp in this example.

Chop, on the other hand, is an SOB.

-------------------------------
J o s e p h   E r i c k s o n
  D i r t y   A p e

EYEMG - interactive media group
80 s. summit #500, akron, ohio 44038
http://www.eyemg.com
fone-330.434.7873
phax-330.253.2186 

> From: Bart Lateur <bart.lateur@skynet.be>
> Organization: MediaMind
> Date: Wed, 26 Jul 2000 13:52:56 +0200
> To: macperl@macperl.org
> Subject: Re: [MacPerl] Can't get sendmail to put subject right...
> 
> On Wed, 26 Jul 2000 06:52:53 +0200, Thomas De Groote wrote:
> 
>> Solved it by removing the extra \n in the end of the To-command. (I, for some
>> reason, don't like that chomp command).
> 
> That's silly. It could break your script at some time. What if there is
> no trailing newline?
> 
> -- 
> Bart.
> 
> # ===== Want to unsubscribe from this list?
> # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org
> 


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