Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Answer 1.1: This exercise doesn’t really have an answer. Simply run the command:
$ perldoc perl $ perldoc perlfunc
Answer 1.2: The trick is to run perldoc on itself:
$ perldoc perldoc
You can also simply run perldoc without giving it anything to read and it will print a summary of its use (which I’ve slightly edited and displayed here):
perldoc [options] PageName|ModuleName|ProgramName...
perldoc [options] -f BuiltinFunction
perldoc [options] -q FAQRegex
Options:
-h Display this help message
[Perldoc v3.14_04]It’s the –f switch that you want to
look up documentation for the print function, which you already saw in
this chapter:
$ perldoc -f print
$ perldoc -q comma