in reply to problem with while loop

Unless you are using %logHash, $ctr and $diff outside of sub compare, they should be inside it;

Replies are listed 'Best First'.
Re^2: problem with while loop
by texuser74 (Monk) on Aug 01, 2008 at 04:34 UTC
    Thank you all perl monks, i moved %logHash, $diff inside my sub compare, now its working fine.