next unless $package->{'name'} ~~ /redhat-release/;
Are you able to explain why you are using smartmatch on this line? The reason is not obvious to me. If, as the comment suggests you would prefer an exact match then use that instead:
next unless $package->{'name'} eq 'redhat-release';
In reply to Re: match exclude
by hippo
in thread match exclude
by emjga1
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |