On Tue, Apr 24, 2001 at 06:39:09PM -0700, Larry Wall wrote:
> Edward Peschko writes:
> : I guess my question is what would be the syntax to access hashes? Would
> : 
> : $hashref.{ }
> : 
> : be that desirable? I really like ->{  } in that case..
> 
> It won't be either of those.  It'll simply be $hashref{ }.
> 
> Larry

Ok, so what does:

my %hash = ( 1 => 3);
my $hash = { 1 => 4};

print $hash{1};

print?

Ed

Reply via email to