Programming Languages C++ Subjective
Mar 13, 2013

Suppose an array contains @arraycontent=(‘ab’, ‘cd’, ‘ef’, ‘gh’). How to print all the contents of the given array?

Detailed Explanation

@arraycontent=(‘ab’, ‘cd’, ‘ef’, ‘gh’)
 
foreach (@arraycontent)
 
{
 
print "$_\n";
 
}

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback