in reply to To Hash or Not to Hash??
not68.168.192.17 => 'ns1.a'
Your if block is not sensible. It seems that $_ should figure in the conditional somehow; isn't that what you want to test? Maybe something like:'68.168.192.17' => ns1.a
You mention a sort in your question, but not in your code. Could you give us a little clearer description of what you want your code to do?if ($ours{$_} eq 'ns1.t') { print OUT "$_\n"; } elsif ($theirs{$_} eq 'ns1.a') { print OUT1 "$_\n"; }
|
|---|