Login
Remember
Register
Ask a Question
Suppose an array contains @arraycontent=(‘ab’, ‘cd’, ‘ef’, ‘gh’). How to print all the contents of the given array?
0
votes
asked
Jul 26, 2023
in
Perl
by
rahuljain1
Suppose an array contains @arraycontent=(‘ab’, ‘cd’, ‘ef’, ‘gh’). How to print all the contents of the given array?
perl-arraycontent
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 26, 2023
by
rahuljain1
@arraycontent=('ab', 'cd', 'ef', 'gh')
foreach (@arraycontent)
{
print "$_\n";
}
...