Why? Isn't
perldoc -q
enough? It saves you the reinventing.
It's not exactly a module, but
a standalone app using lots of modules, but that's almost the same.
It'd be much more complicated without perldoc (-q isn't strictly needed, but I'm using perldoc heavily too).