Skip to content

Instantly share code, notes, and snippets.

@sugar84
Created May 11, 2011 15:48
Show Gist options
  • Save sugar84/966719 to your computer and use it in GitHub Desktop.
Save sugar84/966719 to your computer and use it in GitHub Desktop.
strange behavior
#!/usr/bin env perl
use strict;
local $, = " ";
my $registry = {1 => 1, 2 => 1, 3 => 1};
my $num = [2,5];
say "first" if @$registry{@$num};
my $num = [5,2];
say "third" if @$registry{@$num};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment