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
- Re: Reusable code for binding columns. David Wheeler
- Re: Reusable code for binding columns. Thomas A . Lowery
- Re: Reusable code for binding columns. Abhijit Menon-Sen
- Re: Reusable code for binding columns. Matthew O. Persico
- RE: Reusable code for binding columns. Sterin, Ilya
- Re: Reusable code for binding columns. James Maes
- RE: Reusable code for binding col... Sterin, Ilya
- RE: Reusable code for binding col... Steve Howard
- Re: Reusable code for binding... Abhijit Menon-Sen
- Re: Reusable code for binding... Randal L. Schwartz
- Re: Reusable code for binding columns. Abhijit Menon-Sen
- Re: Reusable code for binding columns. Matthew O. Persico
- Re: Reusable code for binding columns. Michael A. Chase
- Re: Reusable code for binding columns. Michael A. Chase
- Reusable code for binding columns. Steve Howard
- RE: Reusable code for binding columns. Steve Sapovits
