Perldoc - View Perl Documentation

View Perl documentation easily with our Perldoc tool. Learn how to use perldoc to access built-in functions, variables, modules, and more. A quick and easy way to find the information you need.

Perldoc

This tool helps you easily access Perl documentation. Use the examples below to learn how to view documentation for functions, variables, and modules.

Using Perldoc

---
tags: [ perl ]
---
# read about a perl builtin function
perldoc -f <function>

# read about a perl builtin variable (probably need to quote it)
perldoc -v <variable>

# list the various doc pages
perldoc perltoc

# see a perldoc page, such as the Data Structures Cookbook (perldsc)
perldoc <page>
perldoc perldsc

# read an installed module's docs
perldoc <Some::Module>

# see the location of a module's docs
# this is often the same file as the code
perldoc -l <Some::Module>

# see the raw source of the module docs
# this is often the same file as the code, but sometimes not
perldoc -m <Some::Module>

# read the perldoc docs
perldoc perldoc

Further Reading

For more information on Perl, check out these resources: