Perl Programming/Keywords/getpriority

The getpriority keyword
The getpriority function returns the current priority for a process, a process group, or a user. Raises a fatal exception, if used on a machine that doesn't implement getpriority(2).