[Israel.pm] Is there an operator like IN in perl

Amir E. Aharoni amir.aharoni at gmail.com
Wed Mar 4 06:32:22 PST 2009

2009/3/4 Berler Chanan <bc.other at gmail.com>:
> Hi All,
> All are good answers but:
> 1) I can't use any of the perl modules, or should I say use the minimum
> possible.

There's a good chance that you already have the modules that Shlomi
and i mentioned - List::Utils and List::MoreUtils. Just check it.

> 2) Using hash is great but I looked for more suite and elegant solution

Actually, the hash solution is very elegant in most cases. That's also
what perlfaq recommends.

Amir Elisha Aharoni

heb: http://haharoni.wordpress.com | eng: http://aharoni.wordpress.com
cat: http://aprenent.wordpress.com | rus: http://amire80.livejournal.com

"We're living in pieces,
 I want to live in peace." - T. Moore

More information about the Perl mailing list