• +91 9723535972
  • info@interviewmaterial.com

Perl Interview Questions and Answers

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

Answer -

@arraycontent=('ab', 'cd', 'ef', 'gh')

foreach (@arraycontent)

{

print "$_\n";

}

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners