in reply to Re: Re: Re: (re:x5 use strict....)$a and $b should be in perlvar
in thread use strict won't require explicit name for all variables?
Consider a novice-perl maintainer. He has to modify an old module. He uses the vars $a and $b to effect some change. Unknown to him however some part of the code calls a subroutine that overwrites $a and $b. He gets weird results and cant explain them. He looks in perlvar but sees no mention. He doesnt even know that sort is being used so he doesnt know to look in perlfunc. He doesnt look at the strict documentation because like a good novice he has strict turned on already. How other by asking or by luck is he to know or figure out what the hell is going on? (Oh im assuming that as a novice he found using the debugger as imposing as I did at the start and doesnt use it, or doesnt know how at all.)
See what I mean?
But you're right that instead of submitting a bug report, I should submit a patch. Which I will do.
Yves / DeMerphq
--
When to use Prototypes?
Advanced Sorting - GRT - Guttman Rosler Transform
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Mistaken notions of $a/$b strict
by clintp (Curate) on Feb 28, 2002 at 15:43 UTC | |
by dragonchild (Archbishop) on Feb 28, 2002 at 16:02 UTC | |
by blakem (Monsignor) on Mar 01, 2002 at 02:13 UTC | |
by dragonchild (Archbishop) on Mar 01, 2002 at 14:28 UTC |