The Perl 5 module Devel::REPL provides a modern perl interactive shell.