in reply to Key value pair in hash inside while loop

> print "$key\t$hash{$nt}\n";

Could it be you meant $key instead of $nt ?

Cheers Rolf

(addicted to the Perl Programming Language and ☆☆☆☆ :)

Replies are listed 'Best First'.
Re^2: Key value pair in hash inside while loop
by choroba (Cardinal) on Aug 20, 2014 at 20:24 UTC
    Very nice catch!

    Declaring $nt inside the loop would make the problem clear, too.

    لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ