diamondsandperls has asked for the wisdom of the Perl Monks concerning the following question:
I have the following below where the entries are multiline I need to remove duplicate product entries the entries are multiline. Product 1 will be random though but before the dashed line so maybe a look behind on the dashed line to grab product name and do some kind of address comparison since this is where the entries end.
Product 1 ------------------------------------------------------------------ storeId = 1001 phoneNumber = (111) 111-1111 availbilityCode = 1 stockStatus = Limited stock distance = 9.12 city = some city fullStreet = some address Product 2 ------------------------------------------------------------------ storeId = 2117 phoneNumber = (111) 111-1111 availbilityCode = 2 stockStatus = In stock distance = 7.49 city = some city fullStreet = some address Product 3 ------------------------------------------------------------------ storeId = 2123 phoneNumber = (111) 111-1111 availbilityCode = 1 stockStatus = Limited stock distance = 8.83 city = some city fullStreet = some address Product 1 ------------------------------------------------------------------ storeId = 1001 phoneNumber = (111) 111-1111 availbilityCode = 1 stockStatus = Limited stock distance = 8.56 city = some city fullStreet = some address
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Removing Duplicates from a multiline entry
by blue_cowdawg (Monsignor) on Feb 27, 2013 at 13:51 UTC | |
|
Re: Removing Duplicates from a multiline entry
by trizen (Hermit) on Feb 27, 2013 at 14:44 UTC | |
|
Re: Removing Duplicates from a multiline entry
by Kenosis (Priest) on Feb 27, 2013 at 19:21 UTC | |
|
Re: Removing Duplicates from a multiline entry
by 7stud (Deacon) on Feb 27, 2013 at 18:55 UTC | |
|
Re: Removing Duplicates from a multiline entry
by locked_user sundialsvc4 (Abbot) on Feb 27, 2013 at 21:05 UTC | |
|
Re: Removing Duplicates from a multiline entry
by karlgoethebier (Abbot) on Feb 28, 2013 at 09:07 UTC | |
by diamondsandperls (Beadle) on Mar 01, 2013 at 01:39 UTC | |
by karlgoethebier (Abbot) on Mar 01, 2013 at 08:03 UTC |