Sign Up
Login
API
FAQ
Tools
Trends
Archive
PASTEBIN
new paste
trends
API
tools
faq
Guest User
-
Public Pastes
Untitled
1 sec ago
Untitled
1 sec ago
Untitled
5 sec ago
Untitled
8 sec ago
unpopular opinion
14 sec ago
Untitled
C++ | 18 sec ago
Untitled
23 sec ago
Untitled
24 sec ago
daily pastebin
goal
18%
help support pastebin
SHARE
TWEET
[Go] Creating a hash.
cwchen
Oct 28th, 2017
82
Never
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
raw
download
clone
embed
report
print
Perl 6
0.10 KB
my
%hash
=
one
=>
"eins"
,
two
=>
"zwei"
,
three
=>
"drei"
;
%hash
<
two
>
eq
"zwei"
or
die
"Wrong value"
;
RAW Paste Data
my %hash = one => "eins", two => "zwei", three => "drei"; %hash<two> eq "zwei" or die "Wrong value";
Top