Perl/Shell Knowledge Sharing
Perl Interview Questions and Answers
Tuesday, January 25, 2011
Array count
New Method:
@fruits = qw(apple orange banana mango apple);
$num_apple = grep /^(.*?)$/i, @fruits;
print $num_apple;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment