On 3/6/02 2:25 PM, Fred Sahakian <[EMAIL PROTECTED]> wrote:

> Hi Crew:

Hi Fred,

> Here's one--
> 
> Im taking in data through a Perl Script with the following conversion:
> 
> $value = ~s/Apple/Orange/g;
> 
> 
> This is fine for new data, but each time the program is run it's taking all
> the data being entered and turning the apples into oranges

Isn't that what it's supposed to do? And if this data has already been
processed, would there be any apples left?

> any ideas how I 
> get the program to ignore the original data?  Ive tried a variety of logic but
> have had no luck.

Separate your data. Put new data in one var, old data in the other, run the
s/// on the new data, then (if this is what you're trying to do) combine
them.

Try to give more specific information next time...how do you get your data,
why can't you just keep the new data in one var and the rest in another var,
what do you mean by "new data" and "old data", etc...

Hope that helps,
-- 
Michael


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to