Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: Reconcile one list against another

by wind (Priest)
on May 04, 2011 at 18:59 UTC ( [id://902975]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Reconcile one list against another
in thread Reconcile one list against another

That is true, my code was just meant to solve is state variable quandary.

Without thinking too deeply about it, your noted problem might be solved by simply adding some word boundaries:

if (my @matched = grep {$line =~ /\b\Q$_\E\b/i} @users) {

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-06-18 03:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.