There are 2 scalars with strings to compare. Why does not work, I can not understand. Bracket added in the last term to accurately remove all questions in order of operations.

print ($cVal->{Descr}."\n"); print ($TaskData->{DESCR}."\n"); print ((($cVal->{Descr})ne($TaskData->{DESCR}))."\n"); 

Returns:

 FOO BAR 1 FOO FOO 1 
  • one
    And print more lengths from these lines, maybe in one of them there are some unprintable characters which are at the end of the line ... - Mike
  • Better not even length , but use DDP; p $cVal->{Descr}; p $TaskData->{DESCR}; use DDP; p $cVal->{Descr}; p $TaskData->{DESCR}; - PinkTux
  • Are there exactly two scalars there? - tutankhamun
  • there are two lists :) but I'm not sure that ne / eq can compare lists as the questioner expects - KoVadim
  • @KoVadim, which implies that the lists? - PinkTux

0