in reply to how to ignore spaces, commas or new line of an array when comparing
That almost sounds like the use case for the WhiteSpace option. Did you try that?
If you still have problems, I recommend that you show precisely how your arrays are created. eg:
my @array1 = ('abc ', 'xyz');
... and so on. This removes any ambiguity about the data you actually have.
🦛
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to ignore spaces, commad or new line of an array when comparing
by noviceuser (Acolyte) on Jun 16, 2021 at 08:44 UTC | |
by GrandFather (Saint) on Jun 16, 2021 at 08:59 UTC | |
by hippo (Archbishop) on Jun 16, 2021 at 08:48 UTC | |
by noviceuser (Acolyte) on Jun 16, 2021 at 08:57 UTC | |
by hippo (Archbishop) on Jun 16, 2021 at 09:07 UTC | |
by AnomalousMonk (Archbishop) on Jun 16, 2021 at 14:31 UTC | |
by dbuckhal (Chaplain) on Jun 16, 2021 at 14:36 UTC |