[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]
Re: [ID 20000111.008] use strict 'vars'
On Tue, Jan 11, 2000 at 01:08:20PM -0700, Christian Cadieux wrote:
>
> This is a bug report for perl from ccadieux@central.sun.com,
> generated with the help of perlbug 1.13 running under perl 5.003.
>
> [Please enter your report here]
> use strict 'vars' seems to ignore the variables '$a' and '$b'. It works
> fine for '$c', '$d' ...
>
> #/usr/bin/perl
> use strict 'vars';
>
> $a = 2;
>
> # this code should not work but does.
>
$a and $b are special-cased because they are used by sort subroutines.
Ronald
- References to:
-
Christian Cadieux <ccadieux@ccadieux.Central.Sun.COM>
[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]