title: How can I compare md5 checksums in Perl?
body: <p>I'm trying to compare the checksum value of a file.
  One variable <code>$a</code> has the checksum (output of <code>md5sum</code> command, only the hexadecimal part) 
  and the same value is in variable <code>$b</code>.</p>
  
  <p>If I do (<code>$a == $b</code>), I am getting an error, but if I do <code>($a eq $b)</code> it gives not equal.</p>
  
  <p>Thanks for your answers, it worked in string comparison after trimming the white spaces, though the use of chomp din't work. </p>