See the current Perl documentation for getpriority.
Here is our local, out-dated (pre-5.6) version:
getpriority - get current nice value
getpriority WHICH,WHO
Returns the current priority for a process, a process group, or a user.
(See getpriority(2).) Will raise a fatal exception if used on a machine that doesn't implement
getpriority(2).