On 16 Sep 2000 03:12:06 -0000, Perl6 RFC Librarian wrote:

>The only major change to the text of this RFC was to remove a paragraph
>stating that this RFC is particularly targeted to keep C<strict 'vars'>
>off by default.

Yet, I personally would prefer it if strict 'refs' is always on by
default. Would this hinder one-liners? How many one-lliners do you write
that depend on symbolic references? None, I hope.

Yet, this next code snippet is evil:

        $data{b} = 'foo';
        for(qw'a b') {
            push @{$data{$_}}, 'test';
        }

And this shows why:

        use Data::Dumper;
        print Dumper \%data, \@foo;
-->
Name "main::foo" used only once: possible typo at test.pl line 8.
$VAR1 = {
          'a' => [
                   'test'
                 ],
          'b' => 'foo'
        };
$VAR2 = [
          'test'
        ];


I'd like this kind of behaviour to be inhibited, even for one-liners.

-- 
        Bart.

Reply via email to