install package perl-doc.

With perldoc test.pl you can generate and see the documentation of the perl-script.