Advertisement
Albinutte

Perl HM

Feb 17th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.15 KB | None | 0 0
  1. my %test;
  2.  
  3. $test{0} = 23;
  4. $test{1} = "hello";
  5. $test{15} = 34.5;
  6. $test{'mamma mia!'} = 42;
  7.  
  8. print "$test{1}\n";
  9. print "$test{'mamma mia!'}\n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement