Scroll to navigation

VIEWPERL(1) User Commands VIEWPERL(1)

NAME

viewperl - quickly view syntax highlighted Perl code

SYNOPSIS

viewperl [OPTION]... FILE...

DESCRIPTION

View a Perl source code file, syntax highlighted.

view CODE, syntax highlighted
display line numbers
suppress display of line numbers (default)
consider FILE the name of a module, not a file name
display the name of each file (default)
suppress display of file names (implied by --no-reset)
display inline POD documentation (default)
hide POD documentation (line numbers still increment)
reset formatting and line numbers each file (default)
suppress resetting of formatting and line numbers
set tab width (default is 4)
translate tabs into spaces (default)
suppress translating of tabs into spaces
display this help and exit

Note that module names should be given as they would appear after a Perl `use' or `require' statement. `Getopt::Long', for example.

Each string given using -c is considered a different file, so line number and formatting resets will apply.

View a Perl source code file, syntax highlighted.

view CODE, syntax highlighted
display line numbers
suppress display of line numbers (default)
consider FILE the name of a module, not a file name
display the name of each file (default)
suppress display of file names (implied by --no-reset)
display inline POD documentation (default)
hide POD documentation (line numbers still increment)
reset formatting and line numbers each file (default)
suppress resetting of formatting and line numbers
set tab width (default is 4)
translate tabs into spaces (default)
suppress translating of tabs into spaces
display this help and exit

Note that module names should be given as they would appear after a Perl `use' or `require' statement. `Getopt::Long', for example.

Each string given using -c is considered a different file, so line number and formatting resets will apply.

August 2007 viewperl