7

Perl: How to check whether my array contains element x

view full story
linux-howto

http://www.unix.com – Hi All, I am new to perl I am stuck in simple problem I need your help I want to define a subroutine. sub check_if_entity_exists(@array_to_be_checked,$entityName) I have array as http-listener-1 http-listener-2 http-listener-3 http-listener-4 If i send http-listener-3 my subroutine should return me true and false if the array doesn't contain the element (HowTos)