On 2001-03-10 00:10:39, [EMAIL PROTECTED] wrote:
>
> why doesn't this work with my perl5.6
> 
> use strict;
> my @hash{'hi_there','bye_there','over_there'};
> $hash{'bye_there'} = "testing";
> print $hash{'bye_there'};

What are you expecting it to do? It isn't meaningful to "my" a hash
slice, or even particular keys in a hash.

    $ perl -wle 'my $x{a}'
    Can't declare hash elem in my at -e line 1, at EOF
    Execution of -e aborted due to compilation errors.

- ams

Reply via email to