http://www.perlmonks.org?node_id=985777


in reply to Need to reset a variable to zero ??

If you want to print the header each time the loop iterates, just remove $z and the if condition entirely.
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ