> I saw that after I replied! His does a better job at sanitation than mine
as I
> did not thought of leading or trailing whitespace. :)
> 
> Jim

> On Tue, 21 Jun 2005 10:43:18 -0400, Cormack, Ken wrote
> > David was faster at the keyboard than you, Jim.  ;)  He suggested the
> > following yesterday...
> > 
> > >   $lc_subject = s/^\s+//;  # Trim leading whitespace
> > >   $lc_subject = s/\s+$//;  # Trim trailing whitespace
> > >   $lc_subject = s/\s+/./g; # Collapse whitespace into periods

And be careful of David's typing, too.... He used "=" in the above, when he
should have used "=~"  ::wink::

Ken
_______________________________________________
Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list
MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

Reply via email to