http://www.perlmonks.org?node_id=1219461


in reply to Re: difference between two lines
in thread difference between two lines

Hi Corion

I tried the first option(remove all spaces from both lines and compare). I thought there could be best way, that's why posted this question.


All is well. I learn by answering your questions...

Replies are listed 'Best First'.
Re^3: difference between two lines
by Eily (Monsignor) on Jul 30, 2018 at 09:48 UTC

    So the first option worked? If so, there's no need for a "best way". If your code has some issues you'll have to be more specific, rather than hope someone provides a solution actually fits your needs without knowing them. Or if you want advice about your code, you'll have to post it.

    Edited: in hindsight my previous formulation sounded harsher than intended.