HP3000-L Archives

March 2005, Week 4

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Greg Stigers <[log in to unmask]>
Reply To:
Greg Stigers <[log in to unmask]>
Date:
Tue, 22 Mar 2005 18:46:49 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (17 lines)
I'm cobbling together a command file to assemble a list of email recipients
from a lookup file, using passed parms for a one-to-many match with
addresses, so I want the result to be of the form:
[log in to unmask]; [log in to unmask]; [log in to unmask]
I'll start off with an empty list. I'll add the first address. If I then
have a second address, I want to add the semi-colon and space. But I cannot
have a semi-colon after the last address. And while there is more than one
way to skin this cat, I'm wondering what is the most efficient, most elegant
way? Adding the semicolon and space after each address will not work, since
the last address cannot have it. Prefixing each address will not work, since
I cannot have one before the first address.

Greg Stigers

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2