http://qs1969.pair.com?node_id=40924

tune has asked for the wisdom of the Perl Monks concerning the following question:

Hello all Monks!

I used to browse through all the codes you provide as a solution to the others questions. I realized that lot of you used to redeclare variables in a while loop, for example:

while (my $var) { #do something with $a }

The lead software engineer/guru here told me that it is a very bad behaviour, so better to avoid. As well there is a lot of guru here too, please tell me what is the truth. Is it dangerous, or I can apply this style without any PITA (pain in the ass)? :)

-- tune