"be consistent" | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
"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. --Glenn In reply to RE: RE (tilly) 1: redeclaring variables with 'my'
by gharris
|
|