und is the command-line interface to Understand — script project creation, analysis, CodeCheck, metrics, and reports, locally or in CI.
Run Understand from the command line · Headless workflow: create, analyze, check, report
und uperl
runs perl scripts
und uperl scriptName scriptArgs
The uperl command runs Perl scripts from the command line. Scripts that use the $ent->draw command are not supported.
The general format of the command is (und uperl scriptName scriptArgs).
The arguments passed on to Perl will not include 'und' or any arguments that und strips out such as -quiet or -db. For example,
und uperl myScript.pl -quiet "arg1 space" arg2 myProject.und
would run the script myScript with the following arguments:
0 uperl 1 myScript.pl 2 arg1 space 3 arg2
From the scripts, the Understand::CommandLine::db() function will return the current database used in und.