Thanks James. I am going to try this method also. Your input is very much appreciated.
JC
James Edward Gray II <[EMAIL PROTECTED]> wrote:
On Jul 16, 2004, at 3:46 PM, jason corbett wrote:
> I want to eliminate the ". " (periord) or "," (comma) from records
> that I return from a query, but I cannot figure out how to approach
> it. Does Perl have a way that I can match a string that from an array,
> remove a character or characters?
>
>
> For example say I have array @records that contain the following:
>
> Myrecord1 Myrecord2 Myrecord3 Myrecord4 Myrecord5, inc.
> Myrecord6, LP Myrecord7, LLC
>
> I want to send this query out to persons in a .csv file but the
> join(",", @record) statement that I am using causes the and extra cell
> to be created at Myrecord5, inc. Myrecord6, LP Myrecord7, LLC.
How about?
tr/.,//d foreach @records;
James
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]