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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: using grep to match more than two words
by blazar (Canon) on Jun 12, 2007 at 08:29 UTC | |
by parv (Parson) on Jun 13, 2007 at 05:34 UTC |