• +91 9723535972
  • info@interviewmaterial.com

Perl Interview Questions and Answers

Question - How do I do < fill-in-the-blank > for each element in an array?

Answer - #!/usr/bin/perl -w @homeRunHitters = ('McGwire', 'Sosa', 'Maris', 'Ruth'); foreach (@homeRunHitters) { print "$_ hit a lot of home runs in one year\n"; }

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners