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 β€” view CODE, syntax highlighted ✨
  • -l, --lines β€” display line numbers πŸ”’
  • -L, --no-lines β€” suppress display of line numbers (this is the default, btw)
  • -m, --module=FILE β€” consider FILE the 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 Perl use or require statement. like Getopt::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 β€” view CODE, syntax highlighted
  • -l, --lines β€” display line numbers
  • -L, --no-lines β€” suppress display of line numbers (default)
  • -m, --module=FILE β€” consider FILE the 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