in reply to match exclude

 next if ($package->{'name'}=~/\-notes$/); will that do it?

Replies are listed 'Best First'.
Re^2: match exclude
by emjga1 (Novice) on Mar 17, 2017 at 09:10 UTC
    Using
    next if ($package->{'name'}=~/\-notes$/);

    Will show ALL the other RPM's which I dont want.

    abe-n-s00010 gnutls-devel 16.el5_10 abe-n-s00010 gok 2.el5 abe-n-s00010 gphoto2 3.el5 abe-n-s00010 gpm 74.1 abe-n-s00010 gpm 74.1 abe-n-s00010 gpm-devel 74.1 abe-n-s00010 gpm-devel 74.1

      added after

      next unless $package->{'name'} ~~ /redhat-release/;