Common Perl functions and prompt helpers.

...at the moment, just ```perl_prompt_info()```, modeled after the other
similar functions for other languages.