Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: in_array and skipping foreach

by Joost (Canon)
on Apr 13, 2005 at 14:34 UTC ( [id://447415]=note: print w/replies, xml ) Need Help??


in reply to in_array and skipping foreach

You'll want to use a hash instead:
my %ignore_merchants = map { $_ => 1 } ('merchant 1','merchant 2'); # ... next if $ignore_merchants{$offer{retailer}}; }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-18 22:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found