Skip to content

Instantly share code, notes, and snippets.

@hell0again
Created August 24, 2012 07:54
Show Gist options
  • Save hell0again/3447271 to your computer and use it in GitHub Desktop.
Save hell0again/3447271 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
my $args = {eax=>1,ebx=>2};
my ($eax, $ebx) = @{%$args}{qw/eax ebx/};
print "case1: $eax, $ebx\n";
($eax, $ebx) = @{$args}{qw/eax ebx/};
print "case2: $eax, $ebx\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment