in reply to RE (tilly) 1: redeclaring variables with 'my'
in thread redeclaring variables with 'my'

"Perl gurus recommend making variables available with the smallest possible declared scope"

Why is that? Is it for efficiency reasons or mainly for organization and readability purposes?

I tend to predeclare all my variables at the top of the file so they are listed in one place. I find it much easier to keep track of my variables that way. I guess I got into that habbit during my Pascal and C days.