Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: smartmatch with multiple search values

by hippo (Bishop)
on Jul 16, 2019 at 14:09 UTC ( [id://11102924]=note: print w/replies, xml ) Need Help??


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

    Hello Hippo

    that's a good idea. Thank you.

    regards

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11102924]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-20 06:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found