in reply to Re^2: unblessed reference problem
in thread unblessed reference problem

Two small nits. First, that isn't a continuation. It's a closure. (It closes over variables, not control flow.)

Second, your dereferencing syntax could be much clearer:

my $value = $test->($hash->{$domain});