VIEWPERL(1)
β¨ NAME β¨
viewperl β quickly view syntax highlighted Perl code π¦
so real quick, bestie: this is viewperl, and it lives in section 1 of the User Commands manual. that's the whole name situation, slay.
πΈ SYNOPSIS πΈ
viewperl [OPTION]... FILE...
okay so you throw some options at it, you throw some files at it, it does the thing. iconic behavior fr fr π
π DESCRIPTION π
View a Perl source code file, syntax highlighted. that's it, that's the whole vibe. you get to look at your Perl code with all the pretty colors on. no cap.
π OPTIONS π
-c,--code=CODEβ viewCODE, syntax highlighted β¨-l,--linesβ display line numbers π’-L,--no-linesβ suppress display of line numbers (this is the default, btw)-m,--module=FILEβ considerFILEthe name of a module, not a file name π§-n,--nameβ display the name of each file (default!)-N,--no-nameβ suppress display of file names (implied by--no-reset)-p,--podβ display inline POD documentation (default) π-P,--no-podβ hide POD documentation (line numbers still increment) π-r,--resetβ reset formatting and line numbers each file (default) π-R,--no-resetβ suppress resetting of formatting and line numbers π«-s,--shift=WIDTHβ set tab width (default is 4) π-t,--tabsβ translate tabs into spaces (default)-T,--no-tabsβ suppress translating of tabs into spaces π--helpβ display this help and exit π
note: module names should be given as they would appear after a Perluseorrequirestatement. likeGetopt::Long, for example. don't get cute with it π
also bestie, real talk: each string you hand over using -c counts as a different file. so yeah β line number and formatting resets will apply. that's just how she goes π«Ά
π and now... the rerun π
not me copying this next part but also the original literally does this so here we are πβ¨ same energy, same facts, twice the fun:
View a Perl source code file, syntax highlighted.
-c,--code=CODEβ viewCODE, syntax highlighted-l,--linesβ display line numbers-L,--no-linesβ suppress display of line numbers (default)-m,--module=FILEβ considerFILEthe name of a module, not a file name-n,--nameβ display the name of each file (default)-N,--no-nameβ suppress display of file names (implied by--no-reset)-p,--podβ display inline POD documentation (default)-P,--no-podβ hide POD documentation (line numbers still increment)-r,--resetβ reset formatting and line numbers each file (default)-R,--no-resetβ suppress resetting of formatting and line numbers-s,--shift=WIDTHβ set tab width (default is 4)-t,--tabsβ translate tabs into spaces (default)-T,--no-tabsβ suppress translating of tabs into spaces--helpβ 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.
and that's the whole page, bestie!! π this one's signed off as viewperl, dated August 2007, and it's hanging out in section 1 (that VIEWPERL(1) footer vibe). stay highlighted, stay gorgeous ππΈβ¨π¦
π¦ where this page comes from
- debian bookworm: libsyntax-highlight-perl-improved-perl 1.01-8 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libsyntax-highlight-perl-improved-perl 1.01-8 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libsyntax-highlight-perl-improved-perl 1.01-5.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libsyntax-highlight-perl-improved-perl 1.01-8 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libsyntax-highlight-perl-improved-perl 1.01-8 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libsyntax-highlight-perl-improved-perl 1.01-8 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms