git-svn-id: http://dev.catalyst.perl.org/repos/bast/trunk/Devel-REPL@3759
bd8105ee-0ff8-0310-8827-fb3f25b6796d
my @ret = $self->$orig($line);
# the namespace of the loaded module
- if ($line =~ /use\s+(\S+)/) {
+ if ($line =~ /\buse\s+(\S+)/) {
my $module = $1;
- foreach my $keyword (keys %{$self->get_namespace($module)}) {
+ foreach my $keyword (keys %{$self->get_namespace($module) || {}}) {
$self->push_completion($keyword);
}
}