my @a = ("A", "B", "C");
if(grep(/A/, @a))
{
print "found it\n";
}
else
{
print "Coudn't find it\n";
}
키워드 :exists참고링크 : How can I check if a Perl array contains a particular value?
No comments:
Post a Comment