git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-REPL@4411
bd8105ee-0ff8-0310-8827-fb3f25b6796d
around 'find_variable' => sub {
my $orig = shift;
my ($self, $name) = @_;
- my $variable = $self->lexical_environment->get_context('_')->{$name};
- return \$variable if $variable;
+
+ return \( $self->lexical_environment->get_context('_')->{$name} )
+ if exists $self->lexical_environment->get_context('_')->{$name};
+
return $orig->(@_);
};