develooper Front page | perl.perl6.language | Postings from April 2001

Re: Strings vs Numbers (Re: Tying & Overloading)

From:
Larry Wall
Date:
April 24, 2001 21:07
Subject:
Re: Strings vs Numbers (Re: Tying & Overloading)
Message ID:
200104250406.VAA13919@kiev.wall.org
Edward Peschko writes:
: Ok, so what does:
: 
: my %hash = ( 1 => 3);
: my $hash = { 1 => 4};
: 
: print $hash{1};
: 
: print?

4.  You must say %hash{1} if you want the other.

Larry



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About