in reply to match exclude
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';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: match exclude
by emjga1 (Novice) on Mar 17, 2017 at 09:06 UTC | |
by hippo (Archbishop) on Mar 17, 2017 at 09:26 UTC |