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

1 Answer

0 votes
by
@arraycontent=('ab', 'cd', 'ef', 'gh')

foreach (@arraycontent)

{

print "$_\n";

}
...