Don't use shell expansions. They are dangerous, and this code runs as root.

```perl
Readonly::Array my @APPLY => qw(puppet apply --detailed-exitcodes -v -1 /var/log/puppet);
```
and testing in a shell the value of `$?` is just lazy. ;)