in reply to smartmatch with multiple search values
Do you mean this?
#!/usr/bin/env perl use strict; use warnings; my @owner_grouprights = ('11', '14'); my @matches = grep { /4|5|6|7|8|9|10|11|12/ } @owner_grouprights; if (@matches) { print "test2"; }
Use "smartmatch" at your peril.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: smartmatch with multiple search values
by toohoo (Beadle) on Jul 18, 2019 at 06:45 UTC |