Errors messages from autodie
open my $fh, '>', $state_file;
Error saving state: Can't open '/vur/run/state.txt' for writing: 'No such file or directory' at /usr/local/bin/cups-monitor line 19
Error saving state: Can't open '/var/run/state.txt' for writing: 'Permission denied' at /usr/local/bin/cups-monitor line 19