after 'execute' => sub {
my ($self) = @_;
# if we survived execution successfully, save the new package out the global
- $self->current_package($PKG_SAVE);
+ $self->current_package($PKG_SAVE) if defined $PKG_SAVE;
};
around 'eval' => sub {
# declare empty scratchpad package for cleanliness
1;
+
+__END__
+
+=head1 NAME
+
+Devel::REPL::Plugin::Packages - Keep track of which package the user is in
+
+=cut
+