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
In reply to redeclaring variables with 'my' by tune
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |