HomeMathComputingArtsWordsLiteratureMusictwitter facebook webfeed

Perl & Python: Bundled Help System

Advertise Here For Profit

Xah Lee, 2005-01-13, 2011-01-03

Python

Official Doc Online

The official Python documentation is at: docs.python.org

Bundled Help System

While programing in Python, if you happen to not have online access or Python manual, you can lookup syntax or info for keywords or modules within Python.

In the command line, type: “python”, then “help()”.

From there you can type any keyword or module name to find out the syntax or info. Type f to page down, b to page up, q to exit.

Also, your system might have “pydoc” installed. Type “pydoc name”, where the “name” can be any function or module.

Perl

Official Perl Doc Online

perldoc.perl.org

Bundled Help System

On the command line, type perldoc perl to get a list of topics.

use perldoc -f functionName for specific function. Example: perldoc -f printf.

For keywords (e.g. if, while, for …), type perldoc perlop. For operators (e.g. == + % x ++ =~ m// …), type perldoc perlsyn.

For a documentation on a particular module, use the module's name. Example: perldoc Data::Dumper.

blog comments powered by Disqus