Interviewer And Interviewee Guide

Perl Programming Interview Question:

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

Submitted by: Administrator
#!/usr/bin/perl -w
@homeRunHitters = ('McGwire', 'Sosa', 'Maris', 'Ruth');
foreach (@homeRunHitters) {
print "$_ hit a lot of home runs in one yearn";
}
Submitted by: Administrator

Read Online Perl Programming Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.