http://qs321.pair.com?node_id=620638


in reply to using grep to match more than two words

Hi sroy5, try this,

use strict; use warnings; my @arr1 = ("Sun", "Moon", "Venus", "Pluto", "Neptune"); ((grep/^(Sun|Moon)$/, @arr1) == 2) ? (print "True") : (print "False");

Anyway first look into these links How do I post a question effectively? & How (Not) To Ask A Question

Regards,
Velusamy R.


eval"print uc\"\\c$_\""for split'','j)@,/6%@0%2,`e@3!-9v2)/@|6%,53!-9@2~j';