Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: To Pattern Match or not to Pattern Match

by Zed_Lopez (Chaplain)
on Mar 04, 2005 at 00:15 UTC ( #436421=note: print w/replies, xml ) Need Help??


in reply to To Pattern Match or not to Pattern Match

I'd make a hash out of @cdvw_list, and parse the id out of every name, and base my test on whether the id exists in the list:

my %cdwv_hash; @cdwv_hash{@cdwv_list} = (1) x @cdwv_list; for (@names) { my ($id, $name) = (m{^([^/]+)/([^|]+)|}); if (exists $cdwv_hash{$id}) { print "$id: $name\n"; } else { print "No match for $_ in cdwv_list\n" } }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2022-01-29 01:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (74 votes). Check out past polls.

    Notices?