fork download
  1. use strict;
  2. my $key = 'welcome';
  3. my %data = (
  4. 'this' => qw(that),
  5. 'tom' => qw(and jerry),
  6. 'welcome' => q(Hello World),
  7. 'zip' => q(welcome),
  8. );
  9. my @data = keys %data;
  10. print "$data{$key}\n";
  11.  
Success #stdin #stdout 0s 4596KB
stdin
Standard input is empty
stdout