MCQs > IT & Programming > Perl > What will be the output of the following Perl code snippet? @EXAMPLE = (' - ABC', '01 - FAS', '2 - FAP', ' - STTR'); foreach (@EXAMPLe){ if (/0/ .. /1/) { print '$_\n'; } }

Perl MCQs

What will be the output of the following Perl code snippet?

@EXAMPLE = ("   - ABC",

          "01 - FAS",

              "2  - FAP",

          "   - STTR");

foreach (@EXAMPLe){

    if (/0/ .. /1/) {

        print "$_\n";

    }

}


Answer

Correct Answer:

01 - FAS

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Perl Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Perl Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it