in reply to Re: my $scope as the default for variables
in thread Please help me print this hash.
Also, a major part of needing to predeclare your variables is to avoid typos. Having default-lexical scope avoids a lot of the nasty action-at-a-distance that default-global scope produces, but it still can't detect the typo between $outfile and $out_file for you, which I consider the major point of using strict.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: my $scope as the default for variables
by Anonymous Monk on Jun 19, 2012 at 08:36 UTC | |
by Corion (Patriarch) on Jun 19, 2012 at 08:56 UTC | |
by Anonymous Monk on Jun 19, 2012 at 09:12 UTC |