in reply to Re: Print lines based on matching words
in thread Print lines based on matching words
withfor my $list (@lists) { print $list->{line}; printGroups($list->{groups}, %group); print "\n"; }
Please let me know.sub uniq { my %seen; grep !$seen{$_}++, @_; } for my $list (@lists) { my @filtered = uniq(@lists); printGroups(@filtered->{groups}, %group); # prints acl lines AFTER object-groups print $list->{line}; print "line 54: ACL line\n\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Print lines based on matching words
by GrandFather (Saint) on Jul 11, 2016 at 21:09 UTC |