title: How to write the Perl script for comparing the multi-line text of a both scalars?
body: <p>I have two strings.</p>
  
  <p>String 1:</p>
  
  <pre><code>logging on
  enable secret 5 $1$okZh$nSIVWr7vNHAqk231PisjN0
  snmp-server community sph1nkx5 v1default RO 5
  snmp-server ifindex persist
  tacacs-server timeout 5
  tacacs-server key 7 xxx
  </code></pre>
  
  <p>String 2:</p>
  
  <pre><code>logging on
  
  
  enable secret 5 xxx
  snmp-server community  xxx
  snmp-server ifindex persist
  tacacs-server timeout 5
  tacacs-server key 7 00070A160C5E190A002247
  </code></pre>
  
  <p>I want to compare both string by ignoring white spaces &amp; some line which staring with "enable secret" ,"snmp-server community" &amp; "tacacs-server key".</p>